@Singleton @Requires(configuration="io.micronaut.security.token.jwt") public class DefaultOpenIdAuthorizationResponseHandler extends java.lang.Object implements OpenIdAuthorizationResponseHandler
OpenIdAuthorizationResponseHandler.| Constructor and Description |
|---|
DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator,
DefaultOpenIdAuthenticationMapper authenticationMapper,
TokenEndpointClient tokenEndpointClient,
OauthRouteUrlBuilder oauthRouteUrlBuilder,
StateValidator stateValidator)
|
DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator,
DefaultOpenIdAuthenticationMapper authenticationMapper,
TokenEndpointClient tokenEndpointClient,
OauthRouteUrlBuilder oauthRouteUrlBuilder,
StateValidator stateValidator,
PkcePersistence pkcePersistence) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
handle(OpenIdAuthorizationResponse authorizationResponse,
OauthClientConfiguration clientConfiguration,
OpenIdProviderMetadata openIdProviderMetadata,
OpenIdAuthenticationMapper authenticationMapper,
SecureEndpoint tokenEndpoint)
Receives the authorization response and ultimately
returns the authentication response.
|
@Inject public DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdAuthenticationMapper authenticationMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, @Nullable StateValidator stateValidator, @Nullable PkcePersistence pkcePersistence)
tokenResponseValidator - The token response validatorauthenticationMapper - Authentication MappertokenEndpointClient - The token endpoint clientoauthRouteUrlBuilder - The oauth route url builderstateValidator - The state validatorpkcePersistence - The PKCE persistence@Deprecated public DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdAuthenticationMapper authenticationMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, @Nullable StateValidator stateValidator)
DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator, DefaultOpenIdAuthenticationMapper, TokenEndpointClient, OauthRouteUrlBuilder, StateValidator, PkcePersistence ) instead.tokenResponseValidator - The token response validatorauthenticationMapper - Authentication MappertokenEndpointClient - The token endpoint clientoauthRouteUrlBuilder - The oauth route url builderstateValidator - The state validatorpublic org.reactivestreams.Publisher<AuthenticationResponse> handle(OpenIdAuthorizationResponse authorizationResponse, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, @Nullable OpenIdAuthenticationMapper authenticationMapper, SecureEndpoint tokenEndpoint)
OpenIdAuthorizationResponseHandlerhandle in interface OpenIdAuthorizationResponseHandlerauthorizationResponse - The authorization responseclientConfiguration - The client configurationopenIdProviderMetadata - The provider metadataauthenticationMapper - The user details mappertokenEndpoint - The token endpoint