Class DefaultEndSessionController
java.lang.Object
io.micronaut.security.oauth2.routes.DefaultEndSessionController
- All Implemented Interfaces:
EndSessionController
A controller for the end session endpoint.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionDefaultEndSessionController
(ProviderResolver providerResolver, io.micronaut.context.BeanContext beanContext) -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.micronaut.http.MutableHttpResponse<?>>
endSession
(io.micronaut.http.HttpRequest<?> request, Authentication authentication) Performs and end session redirect to an OpenID provider.
-
Constructor Details
-
DefaultEndSessionController
public DefaultEndSessionController(ProviderResolver providerResolver, io.micronaut.context.BeanContext beanContext) - Parameters:
providerResolver
- The provider resolverbeanContext
- 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 interfaceEndSessionController
- Parameters:
request
- The current requestauthentication
- The current authentication- Returns:
- A redirecting http response
-