Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create a user permanently. #1

Closed
MachEleven opened this issue Jun 18, 2018 · 7 comments · May be fixed by #8
Closed

Can't create a user permanently. #1

MachEleven opened this issue Jun 18, 2018 · 7 comments · May be fixed by #8

Comments

@MachEleven
Copy link

I'm using Node-Red v0.18.7. I tried out node-red-contrib-users with the "Example flow" provided on the README.md. I tried the below senario couple of times. I try to create a user with "admin" scope. Although initially it seems to be created in the white list at the user config tab, it gets lost after a browser refresh. "IsLoggedIn" node doesn't recognize the username and password after trying them out at the login page at "/demo" endpoint. "IsLoggedIn" node gives an Unauthorized error.

Then I set the Base URL path to "/users" from the advanced settings of user config tab. I try the same username and password at the login page at "/users" endpoint. This time username & password is recognized and I can log in. However on the resulting page the "username" and "scope" is empty though as I stated previously scope's been created as "admin". Please find the image below.
image

I would prefer not to post this as an issue but a question since above stated may be the result of my own misusage of the node. I couldn't find a proper channel to ask for questions related to the node. I apologize in advance if this is an inconvenience.

@MachEleven MachEleven changed the title Can't permanently create a user. Can't create a user permanently. Jun 18, 2018
@kominami
Copy link

kominami commented Jun 20, 2018

I have the same Issue.

@LucasBarrocal
Copy link

I'm having trouble on storing my created users.

Every time I logout or close my node-red tab on the browser, all my storage of users and even the advanced settings gets lost, I can't access my login accounts. Is there a fix to this problem, maybe a file to secure this data?

@JaimeRMNeto
Copy link

I'm having the same problem here, if i enable the NodeRED security all users disappear when the browser window is closed. Please someone can help us?

@dalgatatar
Copy link

same!

@solvisit
Copy link

solvisit commented Mar 4, 2019

There is an error in nodes/users_config.html:

error: $.getJSON('/credentials/users_config/'+globalUserConfigNode.id, function (data) {
correction: $.getJSON('credentials/users_config/'+globalUserConfigNode.id, function (data) {

@solvisit
Copy link

solvisit commented Mar 4, 2019

Another important thing to do is:

npm install body-parser

and add in users.js at line 116

var bodyParser = require('body-parser');

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

Doom4535 added a commit to Doom4535/node-red-contrib-users that referenced this issue Apr 22, 2019
Adding fix suggested by: @solvisit in issue: SenseTecnic#1

This closes SenseTecnic#1
Doom4535 added a commit to Doom4535/node-red-contrib-users that referenced this issue Apr 22, 2019
Adding fix suggested by: @solvisit in issue: SenseTecnic#1

This closes SenseTecnic/issues/1
@tedhuang
Copy link
Contributor

Apologies for the extreme delay on this reply. Thank you for the suggestions. The fix has been applied in the latest NPM version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants