verifier

fun verifier(verifier: JWTVerifier)

Provides a JWTVerifier used to verify a token format and signature.

Parameters

verifier

verifies token format and signature


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

Provides a JWTVerifier used to verify a token format and signature.


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

Provides a JWTVerifier used to verify a token format and signature.

Parameters

jwkProvider

provides the JSON Web Key

issuer

the issuer of the JSON Web Token

configure

function is applied during JWTVerifier construction


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

Provides a JWTVerifier used to verify a token format and signature.

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

Provides a JWTVerifier used to verify a token format and signature.

Parameters

issuer

of the JSON Web Token

audience

restriction

algorithm

for validations of token signatures


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

Provides a JWTVerifier used to verify a token format and signature.

Parameters

issuer

the issuer of JSON Web Token

block

configuration of JwkProvider