A list of all registered strategy names
Authenticate a given authentication request against a list of strategies.
The authentication request
Service call parameters
A list of allowed strategy names
Create and return a new JWT for a given authentication request.
Will trigger the login event.
The authentication request (should include strategy key)
Service call parameters
Create a new access token with payload and options.
The JWT payload
The options to extend the defaults (configuration.jwtOptions) with
Use a different secret instead
Return the payload for a JWT based on the authentication result.
Called internally by the create method.
The current authentication result
The service call parameters
Get the registered authentication strategies for a list of names.
The list or strategy names
Returns the JWT options based on an authentication result. By default sets the JWT subject to the entity id.
The authentication result
Service call parameters
Parse an HTTP request and response for authentication request information.
The HTTP request
The HTTP response
A list of strategies to use
Register a new authentication strategy under a given name.
The name to register the strategy under
The authentication strategy instance
Mark a JWT as removed. By default only verifies the JWT and returns the result.
Triggers the logout event.
The JWT to remove or null
Service call parameters
Validates the service configuration.
Verifies an access token.
The token to verify
The options to extend the defaults (configuration.jwtOptions) with
Use a different secret instead
Generated using TypeDoc
Return the current configuration from the application