Interface OpenIdTokenResponseValidator

All Known Implementing Classes:
DefaultOpenIdTokenResponseValidator

@DefaultImplementation(DefaultOpenIdTokenResponseValidator.class) public interface OpenIdTokenResponseValidator
Validates an OpenID token response.
Since:
1.2.0
Author:
Sergio del Amo
  • Method Details

    • validate

      Optional<com.nimbusds.jwt.JWT> validate(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, OpenIdTokenResponse openIdTokenResponse, @Nullable @Nullable String nonce)
      Parameters:
      clientConfiguration - The OAuth 2.0 client configuration
      openIdProviderMetadata - The OpenID provider metadata
      openIdTokenResponse - ID Token Access Token response
      nonce - The persisted nonce value
      Returns:
      true if the ID Token access response is considered valid