jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.
https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about
MIT License
268 stars 110 forks source link

Fix failed auth if password contains a colon #67

Open corpsmoderne opened 7 years ago

corpsmoderne commented 7 years ago

Authentification fails if the password contains a colon. The RFC stipulate that the username can't contain a colon but the password can. This change split the received authorization string only at the first colon found.

( sorry this is my first attempt to make a pull request ¯\_(ツ)_/¯ )

FlorianSW commented 7 years ago

Looks like a duplicate of #21?