mirror of
https://github.com/headporter81/specialsource-homepage-backend.git
synced 2026-08-08 15:41:11 +09:00
This commit is contained in:
@@ -17,13 +17,13 @@ public class SecurityConfig {
|
||||
http
|
||||
.csrf(csrf -> csrf.disable()) // REST API 통신을 위해 CSRF 비활성화
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
.requestMatchers("/api/login").permitAll() // 로그인 API는 누구나 접근 가능
|
||||
// 로그인 API 및 파일 동기화 업로드 API는 인증 없이 누구나 접근 가능하도록 허용
|
||||
.requestMatchers("/api/login", "/api/sync/upload").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
);
|
||||
return http.build();
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public PasswordEncoder passwordEncoder() {
|
||||
return new BCryptPasswordEncoder(); // BCrypt 암호화 알고리즘 사용
|
||||
|
||||
Reference in New Issue
Block a user