Added UserDetailsService Bean

This commit is contained in:
Max W. 2024-05-30 12:13:15 +02:00
parent fd4f48a57c
commit 29a9d1707a

View File

@ -24,6 +24,7 @@ public class SecurityConfig {
}
// This bean is required for Spring Security, though it's not used in this project
// Prevents Spring from generating a default password
@Bean
UserDetailsService emptyDetailsService() {
return username -> { throw new UsernameNotFoundException("no local users, only JWT tokens allowed"); };