express-basic-auth
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "express-basic-auth", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Plug & play basic auth middleware for express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,3 +33,6 @@ # express-basic-auth | ||
The middleware will check incoming requests for a basic auth (`Authorization`) | ||
header, parse it and check if the credentials are legit. | ||
header, parse it and check if the credentials are legit. If there are any | ||
credentials, an `auth` property will be added to the request, containing | ||
an object with `user` and `password` properties, filled with the credentials, | ||
no matter if they are legit or not. | ||
@@ -39,5 +42,2 @@ **If a request is found to not be authorized**, it will respond with HTTP 401 | ||
**If a request is successfully authorized**, an `auth` property will be added to the request, | ||
containing an object with `user` and `password` properties, filled with the credentials. | ||
### Static Users | ||
@@ -44,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9966