Commit c51f4406 by Patryk Czarnik

httpBasic

parent ca64fb08
...@@ -21,7 +21,7 @@ public class SecurityConfig { ...@@ -21,7 +21,7 @@ public class SecurityConfig {
SecurityFilterChain configHttpSecurity(HttpSecurity httpSecurity) throws Exception { SecurityFilterChain configHttpSecurity(HttpSecurity httpSecurity) throws Exception {
httpSecurity.authorizeHttpRequests(authz -> authz httpSecurity.authorizeHttpRequests(authz -> authz
.anyRequest().authenticated() .anyRequest().authenticated()
).formLogin(Customizer.withDefaults()) ).httpBasic(Customizer.withDefaults())
; ;
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