This little library is used to parse and put the auth header data at
req.auth. It can currently handle
bearer authentication types.
This has support for JWT tokens when
bearer auth is being used. The token value will attempt to be parsed by the JWT parser. It ONLY does decode. If you would like to verify the token it is available at
reqauth =type: 'basic|bearer'username: 'username'password: 'password'token: 'token'jwt:token: 'rawjwttoken'claims: 'Object of Claims from Token'
var authparser =var http = ;http;
curl -XGET -H 'Authorization: Bearer mytoken' http://localhost:8000