Class DefaultEndSessionController

java.lang.Object
io.micronaut.security.oauth2.routes.DefaultEndSessionController
All Implemented Interfaces:
EndSessionController

@Singleton public class DefaultEndSessionController extends Object implements EndSessionController
A controller for the end session endpoint.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • DefaultEndSessionController

      public DefaultEndSessionController(ProviderResolver providerResolver, io.micronaut.context.BeanContext beanContext)
      Parameters:
      providerResolver - The provider resolver
      beanContext - The bean context
  • Method Details

    • endSession

      public Optional<io.micronaut.http.MutableHttpResponse<?>> endSession(io.micronaut.http.HttpRequest<?> request, Authentication authentication)
      Performs and end session redirect to an OpenID provider.
      Specified by:
      endSession in interface EndSessionController
      Parameters:
      request - The current request
      authentication - The current authentication
      Returns:
      A redirecting http response