I created my own authentication provider with AbstractUserDetailsAuthenticationProvideran extension that authenticates the user to the database and performs additional authorization checks.
The annoyance I came across is an authentication provider that requires me to connect UserDetailsService. At least for this project I do not need to UserDetailsService, because if I have an authentication provider to pull out the user information for authentication / authorization, I do not see the need for UserDetailsServicethe same user to pull out the information for creating the object UserDetails.
So, right now, I have to connect a dummy UserDetailsServiceto my authentication provider, and it does nothing.
Is it possible to create an authentication provider without UserDetailsService?
source
share