[FO] 세션 만료시 로그인 페이지로 이동 추가

This commit is contained in:
김현주
2025-06-27 10:13:57 +09:00
parent 4a97d8316d
commit 7a3b8e3d24

View File

@@ -101,7 +101,9 @@ public class FrontSecurityConfig {
.clearAuthentication(true)
.logoutRequestMatcher(new AntPathRequestMatcher("/logout")))
.sessionManagement(
session -> session.maximumSessions(maxSessionNum).maxSessionsPreventsLogin(false))
session -> session.maximumSessions(maxSessionNum).maxSessionsPreventsLogin(false).expiredUrl("/login"))
.sessionManagement(
session -> session.invalidSessionUrl("/login"))
.oauth2Login(
config ->
config