@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) |
| 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.
|
public DefaultOpenIdAuthorizationResponseHandler(OpenIdTokenResponseValidator tokenResponseValidator, DefaultOpenIdAuthenticationMapper authenticationMapper, TokenEndpointClient tokenEndpointClient, OauthRouteUrlBuilder oauthRouteUrlBuilder, @Nullable StateValidator stateValidator)
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