feat - 인가 url 추가
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 1m24s

This commit is contained in:
sungjin.choi
2026-07-16 15:53:36 +09:00
parent 4a97610eaf
commit 4bfd92e056
@@ -17,13 +17,13 @@ public class SecurityConfig {
http http
.csrf(csrf -> csrf.disable()) // REST API 통신을 위해 CSRF 비활성화 .csrf(csrf -> csrf.disable()) // REST API 통신을 위해 CSRF 비활성화
.authorizeHttpRequests(auth -> auth .authorizeHttpRequests(auth -> auth
.requestMatchers("/api/login").permitAll() // 로그인 API는 누구나 접근 가능 // 로그인 API 및 파일 동기화 업로드 API는 인증 없이 누구나 접근 가능하도록 허용
.requestMatchers("/api/login", "/api/sync/upload").permitAll()
.anyRequest().authenticated() .anyRequest().authenticated()
); );
return http.build(); return http.build();
} }
@Bean @Bean
public PasswordEncoder passwordEncoder() { public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder(); // BCrypt 암호화 알고리즘 사용 return new BCryptPasswordEncoder(); // BCrypt 암호화 알고리즘 사용