We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a29078c + 5db5f40 commit c4e569dCopy full SHA for c4e569d
src/main/java/hs/kr/backend/devpals/global/config/SecurityConfig.java
@@ -45,7 +45,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
45
.httpBasic(AbstractHttpConfigurer::disable) // 기본 로그인 비활성화
46
.formLogin(AbstractHttpConfigurer::disable) // 폼 로그인 비활성화
47
.logout(AbstractHttpConfigurer::disable) // 로그아웃 비활성화
48
- .authorizeHttpRequests(auth -> auth.anyRequest().permitAll()) // 모든 요청을 인증 없이 허용**
+ .authorizeHttpRequests(auth -> auth
49
+ .requestMatchers("/auth/oauth-login").authenticated()
50
+ .anyRequest().permitAll()
51
+ )
52
.oauth2Login(oauth2 -> oauth2
53
.userInfoEndpoint(userInfo -> userInfo
54
.userService(customOauth2UserService)) // 사용자 정보 처리
0 commit comments