project 경로 member 권한 추가 (테스트)
This commit is contained in:
parent
0779f6a2c8
commit
16ce027be9
@ -80,7 +80,7 @@ public class SecurityConfig {
|
|||||||
http
|
http
|
||||||
.securityMatcher("/api/**") // '/api/**' 경로에 대해서만 보안 적용
|
.securityMatcher("/api/**") // '/api/**' 경로에 대해서만 보안 적용
|
||||||
.authorizeHttpRequests(auth -> auth
|
.authorizeHttpRequests(auth -> auth
|
||||||
//.requestMatchers("/api/board/**").hasRole("MEMBER")
|
.requestMatchers("/api/project/**").hasRole("MEMBER")
|
||||||
.requestMatchers("/api/**").permitAll() // 특정 엔드포인트 허용
|
.requestMatchers("/api/**").permitAll() // 특정 엔드포인트 허용
|
||||||
.anyRequest().authenticated() // 나머지 요청은 인증 필요
|
.anyRequest().authenticated() // 나머지 요청은 인증 필요
|
||||||
//auth.anyRequest().access(authorizationManager) // 모든 요청에 대해 권한 관리
|
//auth.anyRequest().access(authorizationManager) // 모든 요청에 대해 권한 관리
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user