HTTP Authentication Client
This library parses the www-Authenticate
request header(s) and provides the Authorization
response header value.
Unlike other libraries it does not do the request itself so it is not tied to any particular request library.
It currently supports HTTP Basic and HTTP Digest authentication.
Usage
TODO
- do a request using your favourite request library.
- get a 401 response
- get the
www-authenticate
header(s)
const Auth = // parse request headervar challenges = Authvar auth = Auth // once you have the username and passwordauth // do an authenticated requestreq
Auth
TODO
Basic
TODO
Digest
TODO
License
MIT
(C) Fozi