File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/example/log4u/common/config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments