Skip to content

Commit 4ba584b

Browse files
committed
chore: 로그아웃 성공시 200 반환
1 parent f1d6060 commit 4ba584b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6868
.addFilterBefore(new JwtAuthenticationFilter(jwtUtil, userService), OAuth2LoginAuthenticationFilter.class)
6969
.addFilterBefore(new JwtLogoutFilter(jwtUtil, refreshTokenRepository), LogoutFilter.class)
7070
.logout(logout ->
71-
logout.logoutUrl("/logout"))
71+
logout.logoutUrl("/logout")
72+
.logoutSuccessHandler((request, response, authentication) -> {
73+
response.setStatus(HttpServletResponse.SC_OK);
74+
}))
7275
.exceptionHandling(exceptions -> exceptions
7376
.authenticationEntryPoint((request, response, authException) -> {
7477
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);

0 commit comments

Comments
 (0)