If i did not misunderstand, AuthenticationProvider uses UserDetailsService to retreive a user's attributes in order to authenticate an Authentication object.
Problem is that in the next code there is no configuration for an AuthenticationProvider neither for a UserDetailsService.
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication().withUser("user").password("pass").roles("ADMIN").and().withUser("user1")
.password("pass").roles("USER");
}
Yet the authentication service has been set.
My question is, was there an implementation for AuthenticationProvider and another one for UserDetailsService that were added to the spring context internally? In this case, what are the used implementations (in the case of memoryAuthentication).
Does the *.withUser("user").password("pass").roles("ADMIN")* part of the configuration represent a UserDetailsService implementation ?