Skip to content

Commit

Permalink
Fix(#89): 로그아웃 수정 (#90)
Browse files Browse the repository at this point in the history
* Fix(#89): JWTFilter 로그찍기

* Fix(#89): 로그아웃 쿠키, redis 삭제

* Fix(#89): SecurityConfig에 /logout 경로 설정

* Fix(#89): 로그아웃 시 쿠키 삭제

* Fix(#89): 로그아웃 시 쿠키 삭제, 캐시 무효화

* Fix(#89): 로그아웃 시 쿠키 삭제, 캐시 무효화
  • Loading branch information
somin-jeong authored and dainshon committed Jul 31, 2024
1 parent 1b8bc2d commit ff135ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/inandout/backend/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

.requestMatchers("/login", "/", "/join", "/healthcheck", "/regenerate-token", "/find-password", "/logout",
"/auth/verify", "/kakaologin/callback", "/inout", "/myroom", "/others/room", "/kakaologin").permitAll()

// "ADMIN"이라는 권한을 가진 사용자만 접근 가능
.requestMatchers("/admin").hasRole("ADMIN")
// 로그인 한 사용자만 접근 가능, 즉 Header에 Authorization이 있는 경로만 허용
Expand Down

0 comments on commit ff135ca

Please sign in to comment.