Configuration
JWT auth provider configuration
Functions
Link copied to clipboard
Http auth header retrieval function. By default it does parse 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
Apply validate function to every call with JWTCredential
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
Configure verifier using JwkProvider.
fun verifier(issuer: String, audience: String, algorithm: Algorithm, block: Verification.() -> Unit = {})
Content copied to clipboard
Configure verifier using JWTVerifier.