Skip to content

Commit

Permalink
#5 fix: 닉네임, 아이디 중복체크 인증 없이 모두 접근 가능하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JoongHyun-Kim committed Jan 25, 2024
1 parent 203f25a commit 0ffd71c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class WebSecurityConfig {
private final UserService userService;
private final AuthService authService;
private final RedisTemplate redisTemplate;
private final RedisTemplate<String, String> redisTemplate;

@Bean
protected SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception {
Expand All @@ -32,7 +32,9 @@ protected SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) thr
.authorizeHttpRequests((authorizeRequests) -> authorizeRequests
.requestMatchers(
new AntPathRequestMatcher("/api/v1/users/login"),
new AntPathRequestMatcher("/api/v1/users/signup")).permitAll()
new AntPathRequestMatcher("/api/v1/users/signup"),
new AntPathRequestMatcher("/api/v1/users/nickname"),
new AntPathRequestMatcher("/api/v1/users/loginId")).permitAll()
.anyRequest().authenticated()) //TODO: 마이페이지 접근 권한 설정 추가
.addFilterBefore(new JwtTokenFilter(authService, userService, redisTemplate), UsernamePasswordAuthenticationFilter.class) // 필터 통과
.build();
Expand Down

0 comments on commit 0ffd71c

Please sign in to comment.