Class RedirectServerLogoutSuccessHandler

java.lang.Object
org.springframework.security.web.server.authentication.logout.RedirectServerLogoutSuccessHandler
All Implemented Interfaces:
ServerLogoutSuccessHandler

public class RedirectServerLogoutSuccessHandler extends Object implements ServerLogoutSuccessHandler
Performs a redirect on log out success.
Since:
5.0
  • Field Details

  • Constructor Details

    • RedirectServerLogoutSuccessHandler

      public RedirectServerLogoutSuccessHandler()
  • Method Details

    • onLogoutSuccess

      public reactor.core.publisher.Mono<Void> onLogoutSuccess(WebFilterExchange exchange, Authentication authentication)
      Description copied from interface: ServerLogoutSuccessHandler
      Invoked after log out was successful
      Specified by:
      onLogoutSuccess in interface ServerLogoutSuccessHandler
      Parameters:
      exchange - the exchange
      authentication - the Authentication
      Returns:
      a completion notification (success or error)
    • setLogoutSuccessUrl

      public void setLogoutSuccessUrl(URI logoutSuccessUrl)
      The URL to redirect to after successfully logging out.
      Parameters:
      logoutSuccessUrl - the url to redirect to. Default is "/login?logout".