Package io.ktor.auth.jwt

Types

Link copied to clipboard
typealias JWTAuthChallengeFunction = suspend PipelineContext<*, ApplicationCall>.(defaultScheme: String, realm: String) -> Unit

Specifies what to send back if session authentication fails.

Link copied to clipboard
class JWTAuthenticationProvider : AuthenticationProvider

JWT authentication provider that will be registered with the specified name

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

JWT verifier configuration function. It is applied on the verifier builder.

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

Represents a JWT credential consist of the specified payload

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

Shortcut functions for standard registered JWT Claims

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

Represents a JWT principal consist of the specified payload

Functions

Link copied to clipboard
fun Authentication.Configuration.jwt(name: String? = null, configure: JWTAuthenticationProvider.Configuration.() -> Unit)

Installs JWT Authentication mechanism