Class EndSessionEndpointResolver
java.lang.Object
io.micronaut.security.oauth2.endpoint.endsession.request.EndSessionEndpointResolver
Responsible for resolving which end session request to use for a given OpenID client configuration.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionEndSessionEndpointResolver
(io.micronaut.context.BeanContext beanContext) Deprecated.EndSessionEndpointResolver
(io.micronaut.context.BeanContext beanContext, AuthorizationServerResolver authorizationServerResolver) -
Method Summary
Modifier and TypeMethodDescriptionresolve
(OauthClientConfiguration oauthClientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder) Attempts to resolve an end session request in the following order: 1.resolve
(OauthClientConfiguration oauthClientConfiguration, Supplier<OpenIdProviderMetadata> openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder) Attempts to resolve an end session request in the following order: 1.
-
Constructor Details
-
EndSessionEndpointResolver
@Inject public EndSessionEndpointResolver(io.micronaut.context.BeanContext beanContext, AuthorizationServerResolver authorizationServerResolver) - Parameters:
beanContext
- The bean contextauthorizationServerResolver
- The authorization server resolver
-
EndSessionEndpointResolver
Deprecated.- Parameters:
beanContext
- The bean context
-
-
Method Details
-
resolve
public Optional<EndSessionEndpoint> resolve(OauthClientConfiguration oauthClientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder) Attempts to resolve an end session request in the following order: 1. A bean lookup with the a name qualifier of the provider name 2. Comparing the issuer URL to a supported list of providers- Parameters:
oauthClientConfiguration
- The client configurationopenIdProviderMetadata
- The provider metadataendSessionCallbackUrlBuilder
- The end session callback builder- Returns:
- An optional end session request
-
resolve
public Optional<EndSessionEndpoint> resolve(OauthClientConfiguration oauthClientConfiguration, Supplier<OpenIdProviderMetadata> openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder) Attempts to resolve an end session request in the following order: 1. A bean lookup with the a name qualifier of the provider name 2. Comparing the issuer URL to a supported list of providers- Parameters:
oauthClientConfiguration
- The client configurationopenIdProviderMetadata
- The provider metadata supplierendSessionCallbackUrlBuilder
- The end session callback builder- Returns:
- An optional end session request
-