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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Customizes the login/UI chain.
-
Field Details
-
LOGOUT_PATH
Path of the logout endpoint, and of the confirmation page it is reached from.- See Also:
-
LOGOUT_SUCCESS_URL
Where the user lands after signing out.- See Also:
-
SESSION_COOKIE
Name of the session cookie.- 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:LoginChainCustomizerCustomizes the login/UI chain.- Specified by:
customizein interfaceLoginChainCustomizer- Parameters:
http- security builder of the chain.
-