JwtAuthenticator

Implements JWT bearer-token authentication.

Extracts the raw token via TokenResolver: missing token yields AuthenticationResult.NotAuthenticated. Calls JwtDecoder.decode with the configured JwtVerification; any thrown exception yields AuthenticationResult.Failure. On success, resolves the identity:

Construct via jwt { } or Builder.

Types

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

Fluent builder for constructing a JwtAuthenticator.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun authenticate(context: Context): AuthenticationResult