Class AbstractEndSessionRequest

java.lang.Object
io.micronaut.security.oauth2.endpoint.endsession.request.AbstractEndSessionRequest
All Implemented Interfaces:
EndSessionEndpoint
Direct Known Subclasses:
Auth0EndSessionEndpoint, AwsCognitoEndSessionEndpoint, KeycloakEndSessionEndpoint, OktaEndSessionEndpoint

public abstract class AbstractEndSessionRequest extends Object implements EndSessionEndpoint
A base class to extend from to log out of an OpenID provider.
Since:
1.2.0
Author:
James Kleeh
  • Field Details

  • Constructor Details

  • Method Details

    • getUrl

      @Nullable public @Nullable String getUrl(io.micronaut.http.HttpRequest<?> originating, Authentication authentication)
      Specified by:
      getUrl in interface EndSessionEndpoint
      Parameters:
      originating - The Originating HTTP Request
      authentication - The authentication.
      Returns:
      The OpenID provider end session URL.
    • getUrl

      protected abstract String getUrl()
      Returns:
      The url of the request
    • getArguments

      protected abstract Map<String,Object> getArguments(io.micronaut.http.HttpRequest<?> originating, Authentication authentication)
      Parameters:
      originating - The originating request
      authentication - The authentication
      Returns:
      The parameters to include in the URL
    • getRedirectUri

      protected String getRedirectUri(io.micronaut.http.HttpRequest<?> originating)
      Parameters:
      originating - The originating request
      Returns:
      The absolute redirect URI