endemecio02 / node-red-contrib-httpauth

Node-RED node for HTTP Basic/Digest Auth
GNU General Public License v2.0
8 stars 12 forks source link

Issues with "File" configuration #5

Closed oups13 closed 5 years ago

oups13 commented 6 years ago

Hi,

I would like to use the "File" configuration because I need to configure multiple users. However, the only user that I can authenticate with is always the last one defined in the file.

For exemple, if the contents of my file is: user1:myrealm:pass1 user2:myrealm:pass2 user3:myrealm:pass3

The only user I'm able to authenticate with is user3 (the last user defined in the file). What am I doing wrong?

Thank you for your help.

michaelblight commented 5 years ago

Is this an issue with using a file that has CR/LF endings rather than Unix-style LF? See here.

oups13 commented 5 years ago

That's it! Thanks alot for helping me resolve this issue.