security to permit all

This commit is contained in:
sumedh
2024-08-14 20:01:47 +05:30
parent 9c7d85b84b
commit b4482aabee
2 changed files with 4 additions and 5 deletions

View File

@@ -76,8 +76,9 @@ public class SecurityConfig {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.csrf(csrf -> csrf.disable()) http.csrf(csrf -> csrf.disable())
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(auth -> auth.requestMatchers("/api/auth/**").permitAll().requestMatchers("/api/test/**") .authorizeHttpRequests(auth -> auth.requestMatchers("/api/auth/**").permitAll()
.permitAll().anyRequest().authenticated()); .requestMatchers("/api/test/**").permitAll()
.anyRequest().permitAll());//.authenticated());
http.authenticationProvider(authenticationProvider()); http.authenticationProvider(authenticationProvider());

View File

@@ -28,6 +28,4 @@ spring.servlet.multipart.max-file-size=5000000MB
spring.servlet.multipart.max-request-size=500000MB spring.servlet.multipart.max-request-size=500000MB
#path to the repository #path to the repository
ingestion.repository.basepath=C:\\Users\\andrea.terzani\\dev\\Olympus ingestion.repository.basepath=C:\\Users\\andrea.terzani\\dev\\Olympus