Class EndSessionEndpointResolver

java.lang.Object
io.micronaut.security.oauth2.endpoint.endsession.request.EndSessionEndpointResolver

@Singleton public class EndSessionEndpointResolver extends Object
Responsible for resolving which end session request to use for a given OpenID client configuration.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • EndSessionEndpointResolver

      public EndSessionEndpointResolver(io.micronaut.context.BeanContext beanContext)
      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 configuration
      openIdProviderMetadata - The provider metadata
      endSessionCallbackUrlBuilder - 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 configuration
      openIdProviderMetadata - The provider metadata supplier
      endSessionCallbackUrlBuilder - The end session callback builder
      Returns:
      An optional end session request