Interface ReactiveOpenIdTokenResponseValidator<T>

Type Parameters:
T - token

@DefaultImplementation(io.micronaut.security.oauth2.endpoint.token.response.validation.DefaultReactiveOpenIdTokenResponseValidator.class) public interface ReactiveOpenIdTokenResponseValidator<T>
Validates an OpenID token response.
Since:
4.8.0
Author:
Sergio del Amo
  • Method Details

    • validate

      @SingleResult @NonNull @NonNull org.reactivestreams.Publisher<T> validate(@NonNull @NonNull OauthClientConfiguration clientConfiguration, @NonNull @NonNull OpenIdProviderMetadata openIdProviderMetadata, @NonNull @NonNull 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:
      A non-empty publisher if the ID Token access response is considered valid