Merge branch 'main' into route_alternatives
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2025-12-26 16:57:02 +01:00
21 changed files with 1468 additions and 57 deletions
@@ -88,6 +88,7 @@ public class SecurityConfiguration {
.cors(withDefaults())
//.authorizeHttpRequests(auth -> auth.anyRequest().permitAll()) //allows Access To ALL APIs, Security is off
.authorizeHttpRequests(auth -> {
auth.requestMatchers(AUTH_WHITELIST).permitAll();
auth.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll();
auth.requestMatchers("/routing/alternative/**").permitAll();
auth.requestMatchers("/auth/user/**").permitAll();
@@ -95,7 +96,6 @@ public class SecurityConfiguration {
auth.requestMatchers("/user/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/friendship/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/trip/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers(AUTH_WHITELIST).permitAll();
//auth.requestMatchers("/error").permitAll();
auth.anyRequest().authenticated();