Skip to content

Commit

Permalink
fix: refactor permit order
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdjww committed May 11, 2024
1 parent f244cdc commit 1d1c427
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/").permitAll()
.requestMatchers("/reissue").permitAll()
.requestMatchers("/auth/email/**").permitAll()
.requestMatchers("/api/v1/user/**", "auth/**").hasRole("USER")
//.requestMatchers("/api/v1/**").hasAnyRole("MENTEE", "MENTOR") //로그인 제외하면 다 멘티나 멘토 아니면 접근불가
.requestMatchers("api/v1/possibleDate/**").hasRole("MENTOR")
.requestMatchers("api/v1/mentor/**").hasRole("MENTEE")
.requestMatchers("/auth/email/**").permitAll()
.requestMatchers("/api/v1/possibleDate/**").hasRole("MENTOR")
.requestMatchers("/api/v1/mentor/**").hasRole("MENTEE")
.anyRequest().authenticated());
//세션 설정 : STATELESS (JWT로 인증 인가 사용할 것이므로)
http
Expand Down

0 comments on commit 1d1c427

Please sign in to comment.