Config
A configuration for the jwt authentication provider.
Functions
Link copied to clipboard
Retrieves an HTTP authentication header. By default, it parses the Authorization
header content.
Link copied to clipboard
fun authSchemes(defaultScheme: String = "Bearer", vararg additionalSchemes: String)
Content copied to clipboard
Link copied to clipboard
Specifies what to send back if JWT authentication fails.
Link copied to clipboard
Link copied to clipboard
fun validate(validate: suspend ApplicationCall.(JWTCredential) -> Principal?)
Content copied to clipboard
Allows you to perform additional validations on the JWT payload.
Link copied to clipboard
fun verifier(jwkProvider: JwkProvider, configure: JWTConfigureFunction = {})
Content copied to clipboard
fun verifier(jwkProvider: JwkProvider, issuer: String, configure: JWTConfigureFunction = {})
Content copied to clipboard
fun verifier(issuer: String, audience: String, algorithm: Algorithm, block: Verification.() -> Unit = {})
Content copied to clipboard
Provides a JWTVerifier used to verify a token format and signature.