Commit f89181b3 by Patryk Czarnik

.anyRequest().authenticated() - tak jak w ustawieniach domyślnych

parent b1a97377
...@@ -11,7 +11,9 @@ public class SecurityConfig { ...@@ -11,7 +11,9 @@ public class SecurityConfig {
@Bean @Bean
SecurityFilterChain setHttpSecurity(HttpSecurity httpSecurity) throws Exception { SecurityFilterChain setHttpSecurity(HttpSecurity httpSecurity) throws Exception {
httpSecurity.authorizeHttpRequests() httpSecurity.authorizeHttpRequests()
.anyRequest().permitAll() .anyRequest().authenticated()
.and()
.formLogin()
; ;
return httpSecurity.build(); return httpSecurity.build();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment