java - Spring security and UserDetailsService -


I'm new to Spring Security and I try to apply a custom UserDetailsService for authentication I am doing What's the problem with me, that there is only one way in this interface loadUserByUsername (string user name) which takes the user name as a parameter only and gives UserDetails is.

I was wondering why this method does not take any passwords in the form of parameters

How did the Spring user succeed in certifying only the user name?

I am new to Spring Safety and the authentication process is welcome in clarification and spring safety on AP.

This is not the job of UserDetailsService to authenticate the user < Code> authentication provider .

For example, DaoAuthenticationProvider simply uses the UserDetailsService to load the user by name and then confirms Take a look at the source code of

DaoAuthenticationProvider so that it will know how that is correct, to know that against the user the user's name is the password attestation token . Behind the scenes is done.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -