Class EndSessionEndpointResolver
- java.lang.Object
-
- io.micronaut.security.oauth2.endpoint.endsession.request.EndSessionEndpointResolver
-
@Singleton public class EndSessionEndpointResolver extends java.lang.Object
Responsible for resolving which end session request to use for a given OpenID client configuration.- Since:
- 1.2.0
- Author:
- James Kleeh
-
-
Constructor Summary
Constructors Constructor Description EndSessionEndpointResolver(io.micronaut.context.BeanContext beanContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<EndSessionEndpoint>
resolve(OauthClientConfiguration oauthClientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, EndSessionCallbackUrlBuilder endSessionCallbackUrlBuilder)
Attempts to resolve an end session request in the following order: 1.
-
-
-
Method Detail
-
resolve
public java.util.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
-
-