jdx / npm-register

Your own private npm registry and backup server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't authenticate (Windows edited htpasswd file)

tmaiaroto opened this issue · comments

Can there be more than one user in the .htpasswd file?? There's a very strange behavior with authentication. Users can't seem to login, but I added a test user to the end of .htpasswd and that magically worked.

Just says invalid credentials : -/user/org.couchdb.user:username

Edited the .htpasswd file on Windows (yes I'm sadly saddled with Windows part of the day)... Perhaps this?
https://github.com/dickeyxxx/htpasswd-auth/blob/master/index.js#L36

Does a \r need to be in there too somehow?

I believe that was it. Running dos2unix on the htpasswd file and re-uploading to S3 worked.