Skip to content

Commit

Permalink
[Fix] 로그인 허용 uri 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
82everywin committed Jan 28, 2025
1 parent b335d04 commit d933c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
key: ${{ secrets.EC2_KEY }}
debug: true
script: |
# Docker 이미지 업데이트 및 애플리케이션 실행
cd ~/backend
docker pull ${{ secrets.DOCKER_USERNAME }}/bookmile-app:latest
chmod 644 .env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // 세션 사용 안함
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/swagger-ui/**","swagger-ui/index.html#/","/v3/api-docs/**", "/swagger-resources/**").permitAll()
.requestMatchers("/api/v1/users/sign-up", "/api/v1/users/sign-in","/api/v1/users/reissue").permitAll()
.requestMatchers("/api/v1/users/sign-up", "/api/v1/users/sign-in","/api/v1/users/reissue", "/api/v1/users/test/**").permitAll()
.requestMatchers("/api/v1/oauth2/test").permitAll()
.requestMatchers("/api/v1/users/test/**").permitAll()
.requestMatchers( "/oauth2/**").permitAll()
.requestMatchers( "/oauth2/**", "/login/oauth2/code/**").permitAll()
.anyRequest().authenticated())
.addFilterBefore(new JwtAuthenticationFilter(jwtTokenProvider), UsernamePasswordAuthenticationFilter.class)
.addFilterBefore(new JwtExceptionHandlerFilter(), JwtAuthenticationFilter.class)
Expand Down

0 comments on commit d933c38

Please sign in to comment.