Class LogoutChainCustomizer

java.lang.Object
com.irurueta.authserver.authorization.api.web.logout.LogoutChainCustomizer
All Implemented Interfaces:
LoginChainCustomizer

@Component @Order(10) public class LogoutChainCustomizer extends Object implements LoginChainCustomizer
Configures how a user signs out of the login/UI chain: a POST to "/logout" (protected by CSRF, so a third-party page cannot sign the user out) invalidates the session, deletes its cookie and returns to the login page.
  • Field Details

    • LOGOUT_PATH

      public static final String LOGOUT_PATH
      Path of the logout endpoint, and of the confirmation page it is reached from.
      See Also:
    • LOGOUT_SUCCESS_URL

      public static final String LOGOUT_SUCCESS_URL
      Where the user lands after signing out.
      See Also:
  • Constructor Details

    • LogoutChainCustomizer

      public LogoutChainCustomizer()
  • Method Details

    • customize

      public void customize(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
      Description copied from interface: LoginChainCustomizer
      Customizes the login/UI chain.
      Specified by:
      customize in interface LoginChainCustomizer
      Parameters:
      http - security builder of the chain.