Skip to content

Commit

Permalink
[Refactor] 접근 권한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyunio committed Jun 8, 2024
1 parent 428c12a commit 7670ca3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/jiyunio/todolist/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.csrf(AbstractHttpConfigurer::disable)

.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/**").permitAll())
// .requestMatchers("/member/sign-up", "/member/sign-in").permitAll()
// .requestMatchers("http://na2ru2.me:5151/**", "/v3/**").permitAll()
// .anyRequest().authenticated())
.requestMatchers("/member/sign-up", "/member/sign-in").permitAll()
.requestMatchers("http://na2ru2.me:5151/swagger-ui/**", "/v3/**").permitAll()
.anyRequest().authenticated())
.sessionManagement(session -> session
.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.addFilterBefore(new JwtAuthenticationFilter(jwtProvider), UsernamePasswordAuthenticationFilter.class);
Expand Down

0 comments on commit 7670ca3

Please sign in to comment.