Class 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 Detail

      • EndSessionEndpointResolver

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