public class JWTAuthenticationProvider
JWT authentication provider that will be registered with the specified name
| Constructor and Description |
|---|
JWTAuthenticationProvider(java.lang.String name)
JWT authentication provider that will be registered with the specified name
|
| Modifier and Type | Method and Description |
|---|---|
void |
authSchemes(java.lang.String defaultScheme,
java.lang.String additionalSchemes) |
java.lang.String |
getRealm()
JWT realm name that will be used during auth challenge
|
void |
setRealm(java.lang.String p)
JWT realm name that will be used during auth challenge
|
void |
validate(kotlin.jvm.functions.Function3<? super io.ktor.application.ApplicationCall,? super io.ktor.auth.jwt.JWTCredential,? super kotlin.coroutines.experimental.Continuation<? super io.ktor.auth.Principal>,? extends java.lang.Object> validate)
Apply validate function to every call with
class JWTCredential |
void |
verifier(com.auth0.jwt.JWTVerifier verifier) |
void |
verifier(kotlin.jvm.functions.Function1<? super io.ktor.http.auth.HttpAuthHeader,com.auth0.jwt.JWTVerifier> verifier) |
void |
verifier(com.auth0.jwk.JwkProvider jwkProvider,
java.lang.String issuer) |
void |
verifier(com.auth0.jwk.JwkProvider jwkProvider) |
public JWTAuthenticationProvider(java.lang.String name)
JWT authentication provider that will be registered with the specified name
public java.lang.String getRealm()
JWT realm name that will be used during auth challenge
public void setRealm(java.lang.String p)
JWT realm name that will be used during auth challenge
public void authSchemes(java.lang.String defaultScheme,
java.lang.String additionalSchemes)
defaultScheme - default scheme that will be used to challenge the client when no valid auth is providedadditionalSchemes - additional schemes that will be accepted when validating the authenticationpublic void verifier(com.auth0.jwt.JWTVerifier verifier)
verifier - verifies token format and signaturepublic void verifier(kotlin.jvm.functions.Function1<? super io.ktor.http.auth.HttpAuthHeader,com.auth0.jwt.JWTVerifier> verifier)
verifier - verifies token format and signaturepublic void verifier(com.auth0.jwk.JwkProvider jwkProvider,
java.lang.String issuer)
jwkProvider - provides the JSON Web Keyissuer - the issuer of the JSON Web Tokenpublic void verifier(com.auth0.jwk.JwkProvider jwkProvider)
jwkProvider - provides the JSON Web Keypublic void validate(kotlin.jvm.functions.Function3<? super io.ktor.application.ApplicationCall,? super io.ktor.auth.jwt.JWTCredential,? super kotlin.coroutines.experimental.Continuation<? super io.ktor.auth.Principal>,? extends java.lang.Object> validate)
Apply validate function to every call with class JWTCredential
class JWTCredential