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 Details

    • logout

      @Nullable protected final @Nullable String logout
  • Constructor Details

    • SessionLogoutHandler

      public SessionLogoutHandler(RedirectConfiguration redirectConfiguration, RedirectService redirectService)
      Constructor.
      Parameters:
      redirectConfiguration - Redirect Configuration
      redirectService - Redirection Service
  • Method Details

    • logout

      public io.micronaut.http.MutableHttpResponse<?> logout(io.micronaut.http.HttpRequest<?> request)
      Specified by:
      logout in interface LogoutHandler<io.micronaut.http.HttpRequest<?>,io.micronaut.http.MutableHttpResponse<?>>
      Parameters:
      request - The HTTP Request being executed
      Returns:
      An HttpResponse built after the user logs out