Skip to content
Snippets Groups Projects

Security

Merged Jitka Viceníková requested to merge security into develop
2 files
+ 39
15
Compare changes
  • Side-by-side
  • Inline
Files
2
package cz.muni.pa165.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.SecurityFilterChain;
@Configuration
public class SecurityConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.
authorizeHttpRequests()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll()
.anyRequest().authenticated();
return http.build();
}
}
\ No newline at end of file
Loading