An authentication scheme extracts and validates credentials from the transport-agnostic AuthenticationContext.
AuthenticationContext
Readonly
Unique name for this scheme (e.g. "jwt", "cookie").
Attempt to authenticate the request. Returns a successful result with a Principal<T> or a failure.
Principal<T>
Optional
Optional challenge header for 401 responses. E.g. { headerName: 'WWW-Authenticate', headerValue: 'Bearer' }
{ headerName: 'WWW-Authenticate', headerValue: 'Bearer' }
An authentication scheme extracts and validates credentials from the transport-agnostic
AuthenticationContext.