开发者

How to customize Spring security Authentication to use 3 parameters?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜