jdx/npm-register

Can't authenticate (Windows edited htpasswd file)

tmaiaroto opened this issue · 2 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.