Skip to content

Commit

Permalink
✨ Feat: api 접근 권한 설정
Browse files Browse the repository at this point in the history
<footer>
- 관련: #22
  • Loading branch information
luke0408 committed Feb 23, 2024
1 parent 909704a commit 3ecd4e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.permitAll()
.requestMatchers(AntPathRequestMatcher.antMatcher("/api/auth/assign/**"))
.hasRole(RoleType.NONE.name())
.requestMatchers(AntPathRequestMatcher.antMatcher("/api/**"))
.authenticated()
)
.oauth2Login(oauth2Login ->
oauth2Login
Expand Down

0 comments on commit 3ecd4e0

Please sign in to comment.