This commit is contained in:
@@ -91,6 +91,7 @@ public class SecurityConfiguration {
|
||||
auth.requestMatchers(AUTH_WHITELIST).permitAll();
|
||||
auth.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll();
|
||||
auth.requestMatchers("/dev/**").permitAll();
|
||||
auth.requestMatchers("/logs").permitAll();
|
||||
auth.requestMatchers("/routing/alternative/**").permitAll();
|
||||
auth.requestMatchers("/auth/user/**").permitAll();
|
||||
auth.requestMatchers("/admin/**").hasRole("ADMIN"); //looks for "ROLE_ADMIN" //alternative: hasAuthoritiy("ADMIN")
|
||||
|
||||
Reference in New Issue
Block a user