Hi There,
I’m currently using the Auth0 spring security framework in order to secure my WebApp.
It work quite well but I have an issue.
The userDetailService is not called and I don’t know why.
My configuration class is like this:
@Override
protected void configure(HttpSecurity http) throws Exception {
JwtWebSecurityConfigurer
.forRS256(audience, issuer)
.configure(http)
.csrf().disable()
.userDetailsService(new MyUserDetailsService())
.authorizeRequests()
.antMatchers("/api/**").authenticated()
.antMatchers("/token").authenticated();
}
The MyUserDetailsService.loadUserByUsername is still ignore and I don’t know how to load the user entity from the database.
I found a post here: java - Spring Security: Custom UserDetailsService not being called (using Auth0 authentication) - Stack Overflow
And I wonder if the same issue still exists.