Skip to content

Commit

Permalink
role changed
Browse files Browse the repository at this point in the history
  • Loading branch information
김교휘 authored and 김교휘 committed Jun 11, 2024
1 parent fc8f634 commit 175c8a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll() // 모든 OPTIONS 요청에 대해 인증을 요구하지 않음
.requestMatchers("/health-check", "/", "/reissue", "/security-check").permitAll()
.requestMatchers("/api/v1/user/**", "/auth/**").hasRole("USER")
.requestMatchers("/api/v1/possibleDate/**").hasRole("MENTOR")
.requestMatchers("/api/v1/mentor/**").hasRole("MENTEE")
.requestMatchers("/api/v1/possibleDate/**").hasAnyRole("MENTOR", "MENTEE")
.requestMatchers("/api/v1/mentor/**").hasAnyRole("MENTEE", "MENTEE")
.anyRequest().authenticated())
.sessionManagement(session -> session
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // 세션 정책을 STATELESS로 설정
Expand Down

0 comments on commit 175c8a6

Please sign in to comment.