@Singleton @Requires(configuration="io.micronaut.security.token.jwt") public class DefaultOpenIdAuthorizationResponseHandler extends java.lang.Object implements OpenIdAuthorizationResponseHandler
OpenIdAuthorizationResponseHandler
.Constructor and Description |
---|
DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator,
DefaultOpenIdUserDetailsMapper userDetailsMapper,
TokenEndpointClient tokenEndpointClient,
OauthRouteUrlBuilder oauthRouteUrlBuilder,
StateValidator stateValidator) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
handle(OpenIdAuthorizationResponse authorizationResponse,
OauthClientConfiguration clientConfiguration,
OpenIdProviderMetadata openIdProviderMetadata,
OpenIdUserDetailsMapper userDetailsMapper,
SecureEndpoint tokenEndpoint)
Receives the authorization response and ultimately
returns the authentication response.
|
public DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdUserDetailsMapper userDetailsMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, @Nullable StateValidator stateValidator)
tokenResponseValidator
- The token response validatoruserDetailsMapper
- The user details 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 OpenIdUserDetailsMapper userDetailsMapper, SecureEndpoint tokenEndpoint)
OpenIdAuthorizationResponseHandler
handle
in interface OpenIdAuthorizationResponseHandler
authorizationResponse
- The authorization responseclientConfiguration
- The client configurationopenIdProviderMetadata
- The provider metadatauserDetailsMapper
- The user details mappertokenEndpoint
- The token endpoint