ktor-auth-jwt / io.ktor.auth.jwt / JWTAuthenticationProvider / Configuration / verifier

verifier

fun verifier(verifier: JWTVerifier): Unit
fun verifier(verifier: (HttpAuthHeader) -> JWTVerifier?): Unit

Parameters

verifier - verifies token format and signature

fun verifier(jwkProvider: JwkProvider, issuer: String, configure: JWTConfigureFunction = {}): Unit

Parameters

jwkProvider - provides the JSON Web Key

issuer - the issuer of the JSON Web Token

fun verifier(jwkProvider: JwkProvider, configure: JWTConfigureFunction = {}): Unit

Parameters

jwkProvider - provides the JSON Web Key

configure - function will be applied during JWTVerifier construction

fun verifier(issuer: String, audience: String, algorithm: Algorithm, block: Verification.() -> Unit = {}): Unit

Configure verifier using JWTVerifier.

Parameters

issuer - of the JSON Web Token

audience - restriction

algorithm - for validations of token signatures

fun verifier(issuer: String, block: JWTConfigureFunction = {}): Unit

Configure verifier using JwkProvider.

Parameters

issuer - the issuer of JSON Web Token

block - configuration of JwkProvider