Handler Namespace
Classes
BaseAuthHandler
middleware
Do some preparation before the authentication and fetch the representations of the user and credentials according to the authentication adapter.
Signature
middleware(Object req, Object res, Function next) : void
Parameters
- req
- The Request
- Type: Object
- res
- The Response
- Type: Object
- next
- Function to call when finished
- Type: Function
process
Use a configured authentication adapter to authenticate.
Signature
process(Object username, Object credentials, Object req, Function next) : void
Parameters
- username
- The given username
- Type: Object
- credentials
- The given password
- Type: Object
- req
- The Request
- Type: Object
- next
- Function to call when finished
- Type: Function