mirror of
https://github.com/headporter81/specialsource-homepage-backend.git
synced 2026-12-06 07:41:09 +09:00
Merge remote-tracking branch 'origin/master'
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 1m25s
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 1m25s
# Conflicts: # src/main/java/company/specialsource/SpecialsourceHomepageApplication.java
This commit is contained in:
commit
53f28e2f09
16 files changed
+425
-41
No files matched your search
@@ -24,14 +24,14 @@ public class SecurityConfig {
|
||||
.csrf(csrf -> csrf.disable()) // REST API 통신을 위해 CSRF 비활성화
|
||||
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
.requestMatchers("/api/login").permitAll() // 로그인 API는 누구나 접근 가능
|
||||
// 로그인 API 및 파일 동기화 업로드 API는 인증 없이 누구나 접근 가능하도록 허용
|
||||
.requestMatchers("/api/login", "/api/sync/upload").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
|
||||
return http.build();
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public PasswordEncoder passwordEncoder() {
|
||||
return new BCryptPasswordEncoder(); // BCrypt 암호화 알고리즘 사용
|
||||
|
||||
Reference in new issue
Block a user