@ -326,6 +328,7 @@ public final class LogoutConfigurer<H extends HttpSecurityBuilder<H>>
@@ -326,6 +328,7 @@ public final class LogoutConfigurer<H extends HttpSecurityBuilder<H>>
@ -337,6 +340,14 @@ public final class LogoutConfigurer<H extends HttpSecurityBuilder<H>>
@@ -337,6 +340,14 @@ public final class LogoutConfigurer<H extends HttpSecurityBuilder<H>>
@ -12,6 +12,7 @@ The default is that accessing the URL `/logout` logs the user out by:
@@ -12,6 +12,7 @@ The default is that accessing the URL `/logout` logs the user out by:
- Invalidating the HTTP Session
- Cleaning up any RememberMe authentication that was configured
- Clearing the `SecurityContextHolder`
- Clearing the `SecurityContextRepository`
- Redirecting to `/login?logout`
Similar to configuring login capabilities, however, you also have various options to further customize your logout requirements:
@ -53,6 +55,8 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@@ -53,6 +55,8 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@ -76,6 +80,8 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@@ -76,6 +80,8 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@ -114,4 +120,14 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@@ -114,4 +120,14 @@ public class SecurityContextLogoutHandler implements LogoutHandler {
@ -149,13 +149,46 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -149,13 +149,46 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@ -392,11 +425,8 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -392,11 +425,8 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
// We may have a new session, so check also whether the context attribute
@ -748,6 +749,53 @@ public class HttpSessionSecurityContextRepositoryTests {
@@ -748,6 +749,53 @@ public class HttpSessionSecurityContextRepositoryTests {