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 Summary
Modifier and TypeMethodDescription@NonNull org.reactivestreams.Publisher<T>
validate
(@NonNull OauthClientConfiguration clientConfiguration, @NonNull OpenIdProviderMetadata openIdProviderMetadata, @NonNull OpenIdTokenResponse openIdTokenResponse, @Nullable String nonce)
-
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 configurationopenIdProviderMetadata
- The OpenID provider metadataopenIdTokenResponse
- ID Token Access Token responsenonce
- The persisted nonce value- Returns:
- A non-empty publisher if the ID Token access response is considered valid
-