Authentication data type
Principal data type, the type must extend Principal
Readonly
authenticationString to use in WWW-Authenticate
header when returing
a HTTP 401 response, see:
https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml
Readonly
nameA human readable name for this authentication filter.
Attempt to authorise a user suing the authentication data supplied.
An instance of the principal type U
should be returned on authentication
success, otherwise undefined
should be returned.
An instance of the authentication data type T
.
Instance of type U
or undefined
on authentication failure.
Extract an instance of the authentication data type T
from a HTTP request. If extraction is not possible due to
missing request headers/data, undefined
should be returned.
Request context to use.
Instance of type T
or undefined
on extraction failure.
Generated using TypeDoc
Authentication filter that can extract authentication data from a HTTP request and preform authentication using that data.