Skip to content
Snippets Groups Projects

Security

Merged Jitka Viceníková requested to merge security into develop
4 files
+ 15
3
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -22,7 +22,7 @@ public class SecurityConfig {
http.csrf().disable();
http
.authorizeHttpRequests(x -> x
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/seed", "/clear").permitAll()
.requestMatchers(HttpMethod.POST,"/carComponent").hasAuthority("SCOPE_test_1")
.requestMatchers(HttpMethod.GET, "/carComponent").hasAnyAuthority("SCOPE_test_5", "SCOPE_test_1")
.requestMatchers("/carComponent/**").hasAnyAuthority("SCOPE_test_5", "SCOPE_test_1")
Loading