Package-level declarations

Types

Link copied to clipboard

An UnauthorizedHandler that includes a WWW-Authenticate: Bearer challenge on 401 responses.

Link copied to clipboard
interface DecodedJwt

A library-agnostic view of a successfully verified JWT.

Link copied to clipboard
class Jwt(val token: DecodedJwt) : Identity

The Identity produced by JWT authentication.

Link copied to clipboard

Implements JWT bearer-token authentication.

Link copied to clipboard
class JwtConfig

Configuration for the jwt strategy factory.

Link copied to clipboard
fun interface JwtDecoder

Verifies and decodes a raw JWT according to a JwtVerification specification.

Link copied to clipboard
fun interface JwtIdentityMapper

Maps a verified DecodedJwt to a caller-defined Identity.

Link copied to clipboard
sealed interface JwtKeySource

Describes where the key(s) used to verify a JWT signature come from.

Link copied to clipboard
fun interface JwtRolesMapper

Maps a decoded JWT to the set of RouteRoles granted to the caller.

Link copied to clipboard

Library-agnostic specification of how a JWT must be verified.

Link copied to clipboard
data class SimpleDecodedJwt(val subject: String, val claims: Map<String, Any?>) : DecodedJwt

Immutable DecodedJwt implementation created by adapter modules after library-specific verification.

Functions

Link copied to clipboard

Builds an AuthenticationStrategy.Sync for JWT bearer-token authentication, and returns it for assignment to http.authentication or ws.authentication.