Skip to content

Commit e254263

Browse files
committed
🔧 chore: 세션 정책 설정
1 parent 077da43 commit e254263

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
5858
.logoutSuccessHandler(oAuthLogoutSuccessHandler)
5959
.clearAuthentication(true)
6060
.invalidateHttpSession(true)
61-
.permitAll());
61+
.permitAll())
62+
.sessionManagement(session ->
63+
session
64+
.sessionFixation().migrateSession()
65+
.maximumSessions(1)
66+
);
6267
return http.build();
6368
}
6469
}

0 commit comments

Comments
 (0)