security to permit all
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
|||||||
@@ -29,5 +29,3 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user