Skip to content

Commit

Permalink
fix: SecurityConfig 경로별 인가 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jieun5119 committed Oct 10, 2024
1 parent d276649 commit a8e2a3d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

// 경로별 인가
http.authorizeHttpRequests((authorize)->
authorize.requestMatchers("/**").permitAll()
.requestMatchers("/reissue").permitAll()

// authorize.requestMatchers("/login","/","api/users/join").permitAll()
// .requestMatchers("/admin").hasRole("ADMIN")
// authorize.requestMatchers("/**").permitAll()
// .requestMatchers("/reissue").permitAll()
// .anyRequest().authenticated()

authorize.requestMatchers("/login","/","api/users/join","/sms/**").permitAll()
.requestMatchers("/admin").hasRole("ADMIN")
.requestMatchers("/reissue").permitAll()
.anyRequest().authenticated()
);

http.addFilterAfter(new JWTFilter(jwtUtil), LoginFilter.class);
Expand Down

0 comments on commit a8e2a3d

Please sign in to comment.