I am a bit new to Spring Security. Normally, we authenticate users using 2 parameters username and password. I have to configure the authentication process to use 3 parameters, which are account id, username a开发者_如何学JAVAnd password. How should I implement it?
You may simply implement username as a combination of two parameters like account_id@login.
The standard way would be to use a custom WebAuthenticationDetails
.
Have a look at this answer.
精彩评论