java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.validation.NonceClaimValidator

@Requires(property="micronaut.security.token.jwt.claims-validators.nonce", notEquals="false") @Singleton public class NonceClaimValidator extends Object
Responsible for validating the nonce claim.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • NonceClaimValidator

      public NonceClaimValidator()
  • Method Details

    • validate

      public boolean validate(OpenIdClaims claims, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata providerMetadata, @Nullable @Nullable String nonce)
      Parameters:
      claims - ID Token Claims
      clientConfiguration - OAuth 2.0 Client Configuration
      providerMetadata - OpenID Connect provider metadata
      nonce - The nonce value
      Returns:
      Whether the JWT Claims pass validation or not.