public final class DuoIdTokenValidator extends Object implements TokenValidator
| Constructor and Description |
|---|
DuoIdTokenValidator(String clientSecret,
String username,
String audience,
String apiHost) |
DuoIdTokenValidator(String clientSecret,
String username,
String audience,
String apiHost,
String nonce)
Constructor with nonce parameter.
|
| Modifier and Type | Method and Description |
|---|---|
com.auth0.jwt.interfaces.DecodedJWT |
validateAndDecode(String jwt)
Validate the provided jwt token against the expected values of the claims, as described above.
|
public DuoIdTokenValidator(String clientSecret, String username, String audience, String apiHost)
public DuoIdTokenValidator(String clientSecret, String username, String audience, String apiHost, String nonce)
clientSecret - The client secret provided by Duo in the admin panel.username - The name of the user trying to authaudience - This value is the client id provided by Duo in the admin panel.apiHost - The api host provided by Duo in the admin panel.nonce - A string used to associate a client session with an ID token.public com.auth0.jwt.interfaces.DecodedJWT validateAndDecode(String jwt) throws DuoException
validateAndDecode in interface TokenValidatorDuoExceptionCopyright © 2021. All rights reserved.