Class DefaultOpenIdAuthorizationResponseHandler
java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.response.DefaultOpenIdAuthorizationResponseHandler
- All Implemented Interfaces:
OpenIdAuthorizationResponseHandler
@Singleton
@Requires(configuration="io.micronaut.security.token.jwt")
public class DefaultOpenIdAuthorizationResponseHandler
extends Object
implements OpenIdAuthorizationResponseHandler
Default implementation of
OpenIdAuthorizationResponseHandler
.- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOpenIdAuthorizationResponseHandler
(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdAuthenticationMapper authenticationMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, StateValidator stateValidator, PkcePersistence pkcePersistence) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<AuthenticationResponse>
handle
(OpenIdAuthorizationResponse authorizationResponse, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, OpenIdAuthenticationMapper authenticationMapper, SecureEndpoint tokenEndpoint) Receives the authorization response and ultimately returns the authentication response.
-
Constructor Details
-
DefaultOpenIdAuthorizationResponseHandler
public DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdAuthenticationMapper authenticationMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, @Nullable StateValidator stateValidator, @Nullable PkcePersistence pkcePersistence) - Parameters:
tokenResponseValidator
- The token response validatorauthenticationMapper
- Authentication MappertokenEndpointClient
- The token endpoint clientoauthRouteUrlBuilder
- The oauth route url builderstateValidator
- The state validatorpkcePersistence
- The PKCE persistence
-
-
Method Details
-
handle
public org.reactivestreams.Publisher<AuthenticationResponse> handle(OpenIdAuthorizationResponse authorizationResponse, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, @Nullable OpenIdAuthenticationMapper authenticationMapper, SecureEndpoint tokenEndpoint) Description copied from interface:OpenIdAuthorizationResponseHandler
Receives the authorization response and ultimately returns the authentication response.- Specified by:
handle
in interfaceOpenIdAuthorizationResponseHandler
- Parameters:
authorizationResponse
- The authorization responseclientConfiguration
- The client configurationopenIdProviderMetadata
- The provider metadataauthenticationMapper
- The user details mappertokenEndpoint
- The token endpoint- Returns:
- An authentication response publisher
-