Skip to content

Commit 0d4ac21

Browse files
committed
chore: 로그아웃 url 수정
1 parent 1c6c0c5 commit 0d4ac21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/example/log4u/common/config/SecurityConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7070
.addFilterBefore(new JwtAuthenticationFilter(jwtUtil, userService), OAuth2LoginAuthenticationFilter.class)
7171
.addFilterBefore(new JwtLogoutFilter(jwtUtil, refreshTokenRepository), LogoutFilter.class)
7272
.logout(logout ->
73-
logout.logoutUrl("/logout")
73+
logout.logoutUrl("/oauth2/logout")
7474
.logoutRequestMatcher(new OrRequestMatcher(
75-
new AntPathRequestMatcher("/logout", "POST"),
76-
new AntPathRequestMatcher("/logout", "GET")
75+
new AntPathRequestMatcher("/oauth2/logout", "POST"),
76+
new AntPathRequestMatcher("/oauth2/logout", "GET")
7777
)) // POST와 GET 요청 모두 허용
7878
.logoutSuccessHandler((request, response, authentication) -> {
7979
response.setStatus(HttpServletResponse.SC_OK);

0 commit comments

Comments
 (0)