We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077da43 commit e254263Copy full SHA for e254263
backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java
@@ -58,7 +58,12 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
58
.logoutSuccessHandler(oAuthLogoutSuccessHandler)
59
.clearAuthentication(true)
60
.invalidateHttpSession(true)
61
- .permitAll());
+ .permitAll())
62
+ .sessionManagement(session ->
63
+ session
64
+ .sessionFixation().migrateSession()
65
+ .maximumSessions(1)
66
+ );
67
return http.build();
68
}
69
0 commit comments