Skip to content

Commit

Permalink
refactor: api 모든 권한 열기
Browse files Browse the repository at this point in the history
  • Loading branch information
singsangssong committed Jul 12, 2024
1 parent 33a62a0 commit 054cbba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/kr/tgwing/tech/security/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests(request -> request
.requestMatchers(PERMIT_URL_ARRAY)
.permitAll()
.requestMatchers("/user/**", "/login", "/admin/**")
.permitAll()
// .requestMatchers("/admin/**")
// .hasRole("ADMIN")
.requestMatchers(HttpMethod.GET, "/file/**")
// .requestMatchers("/user/**", "/login", "/admin/**")
// .permitAll()
//// .requestMatchers("/admin/**")
//// .hasRole("ADMIN")
// .requestMatchers(HttpMethod.GET, "/file/**")
// .permitAll()
.requestMatchers("/**")
.permitAll()
.anyRequest().authenticated())
.addFilterBefore(new JwtFilter(jwtUtil), LoginFilter.class)
Expand Down

0 comments on commit 054cbba

Please sign in to comment.