Skip to content

Commit c4e569d

Browse files
authored
Dev > Main 브랜치 병합
Oauth 테스트를 위해 Security 파일을 수정 후 Main 브랜치로 병합합니다.
2 parents a29078c + 5db5f40 commit c4e569d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/hs/kr/backend/devpals/global/config/SecurityConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
4545
.httpBasic(AbstractHttpConfigurer::disable) // 기본 로그인 비활성화
4646
.formLogin(AbstractHttpConfigurer::disable) // 폼 로그인 비활성화
4747
.logout(AbstractHttpConfigurer::disable) // 로그아웃 비활성화
48-
.authorizeHttpRequests(auth -> auth.anyRequest().permitAll()) // 모든 요청을 인증 없이 허용**
48+
.authorizeHttpRequests(auth -> auth
49+
.requestMatchers("/auth/oauth-login").authenticated()
50+
.anyRequest().permitAll()
51+
)
4952
.oauth2Login(oauth2 -> oauth2
5053
.userInfoEndpoint(userInfo -> userInfo
5154
.userService(customOauth2UserService)) // 사용자 정보 처리

0 commit comments

Comments
 (0)