Package-level declarations

Types

Link copied to clipboard
typealias JWTAuthChallengeFunction = suspend JWTChallengeContext.(defaultScheme: String, realm: String) -> Unit

Specifies what to send back if JWT authentication fails.

Link copied to clipboard
Link copied to clipboard
typealias JWTConfigureFunction = Verification.() -> Unit

A JWT verifier function used to verify a token format and its signature.

Link copied to clipboard
class JWTCredential(val payload: Payload) : JWTPayloadHolder, Credential

A JWT credential that consists of the specified payload.

Link copied to clipboard
abstract class JWTPayloadHolder(val payload: Payload)

Shortcut functions for standard registered JWT claims.

Link copied to clipboard
class JWTPrincipal(val payload: Payload) : JWTPayloadHolder, Principal

A JWT principal that consists of the specified payload.

Functions

Link copied to clipboard

Installs the JWT Authentication provider. JWT (JSON Web Token) is an open standard that defines a way for securely transmitting information between parties as a JSON object. To learn how to configure it, see JSON Web Tokens.