Package io.micronaut.security.session
Class SessionLogoutHandler
java.lang.Object
io.micronaut.security.session.SessionLogoutHandler
- All Implemented Interfaces:
LogoutHandler<io.micronaut.http.HttpRequest<?>,
io.micronaut.http.MutableHttpResponse<?>>
@Requires(condition=SessionAuthenticationModeCondition.class)
@Singleton
public class SessionLogoutHandler
extends Object
implements LogoutHandler<io.micronaut.http.HttpRequest<?>,io.micronaut.http.MutableHttpResponse<?>>
LogoutHandler
implementation for Session-Based Authentication.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSessionLogoutHandler
(RedirectConfiguration redirectConfiguration, RedirectService redirectService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.MutableHttpResponse<?>
logout
(io.micronaut.http.HttpRequest<?> request)
-
Field Details
-
logout
-
-
Constructor Details
-
SessionLogoutHandler
public SessionLogoutHandler(RedirectConfiguration redirectConfiguration, RedirectService redirectService) Constructor.- Parameters:
redirectConfiguration
- Redirect ConfigurationredirectService
- Redirection Service
-
-
Method Details
-
logout
public io.micronaut.http.MutableHttpResponse<?> logout(io.micronaut.http.HttpRequest<?> request) - Specified by:
logout
in interfaceLogoutHandler<io.micronaut.http.HttpRequest<?>,
io.micronaut.http.MutableHttpResponse<?>> - Parameters:
request
- The HTTP Request being executed- Returns:
- An HttpResponse built after the user logs out
-