verifier

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

Parameters

verifier

verifies token format and signature


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

Parameters

jwkProvider

provides the JSON Web Key

issuer

the issuer of the JSON Web Token

  • @param configure function will be applied during JWTVerifier construction


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

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 = {})

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 = {})

Configure verifier using JwkProvider.

Parameters

issuer

the issuer of JSON Web Token

block

configuration of JwkProvider