added fix script for loops in carta api specs + poc alternative endpoint

This commit is contained in:
2025-12-26 16:46:09 +01:00
parent 44c2fc0832
commit 938a618bf2
15 changed files with 5872 additions and 3716 deletions
@@ -89,6 +89,7 @@ public class SecurityConfiguration {
//.authorizeHttpRequests(auth -> auth.anyRequest().permitAll()) //allows Access To ALL APIs, Security is off
.authorizeHttpRequests(auth -> {
auth.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll();
auth.requestMatchers("/routing/alternative/**").permitAll();
auth.requestMatchers("/auth/user/**").permitAll();
auth.requestMatchers("/admin/**").hasRole("ADMIN"); //looks for "ROLE_ADMIN" //alternative: hasAuthoritiy("ADMIN")
auth.requestMatchers("/user/**").hasAnyRole("ADMIN", "USER");