LogoutDsl
A Kotlin DSL to configure HttpSecurity logout support using idiomatic Kotlin code.
Author
Eleftheria Stein
Since
5.3
Properties
whether the SecurityContextLogoutHandler should clear the Authentication at the time of logout.
whether to invalidate the HttpSession at the time of logout.
the RequestMatcher that triggers log out to occur.
the LogoutSuccessHandler to use after logout has occurred. If this is specified, logoutSuccessUrl is ignored.
the URL to redirect to after logout has occurred.
Functions
Adds a LogoutHandler. The SecurityContextLogoutHandler is added as the last LogoutHandler by default.
Sets a default LogoutSuccessHandler to be used which prefers being invoked for the provided RequestMatcher.
Allows specifying the names of cookies to be removed on logout success.
Grants access to the logoutSuccessUrl and the logoutUrl for every user.