Added UserDetailsService Bean
This commit is contained in:
parent
fd4f48a57c
commit
29a9d1707a
@ -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"); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user