Package-level declarations

Types

Link copied to clipboard

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

Link copied to clipboard

Implements opaque bearer-token authentication.

Link copied to clipboard

Configuration for the opaqueToken strategy factory.

Link copied to clipboard
data class OpaqueTokenDetails @JvmOverloads constructor(val identity: Identity, val expiresAt: Instant? = null, val roles: Set<RouteRole> = emptySet())

The stored record behind an opaque token: the caller's own identity, optional expiresAt the extension checks before authenticating, and the roles granted on success.

Link copied to clipboard
fun interface OpaqueTokenLookup

Resolves a raw opaque token to its stored OpaqueTokenDetails, carrying the caller's own identity.

Functions

Link copied to clipboard

Builds an AuthenticationStrategy.Sync for opaque bearer-token authentication.