1

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 and password. How should I implement it?

2 Answers 2

1

You may simply implement username as a combination of two parameters like account_id@login.

Sign up to request clarification or add additional context in comments.

Comments

0

The standard way would be to use a custom WebAuthenticationDetails.

Have a look at this answer.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.