Builder

class Builder(decoder: JwtDecoder, verification: JwtVerification)

Fluent builder for constructing a JwtAuthenticator.

Constructors

Link copied to clipboard
constructor(decoder: JwtDecoder, verification: JwtVerification)

Functions

Link copied to clipboard

Builds a JwtAuthenticator with the configured settings.

Link copied to clipboard

Sets the JwtIdentityMapper used to resolve the Identity from a verified token. Defaults to null (falls back to the built-in Jwt identity).

Link copied to clipboard

Sets the JwtRolesMapper used to resolve roles from a verified token. Defaults to JwtRolesMapper.noRoles.

Link copied to clipboard

Overrides how the raw token is located in the request.