Spring Security: Access Extra parameters along with username and password when submitting Login Form

Omer-Pitou
Omer-Pitou used Ask the Experts™
on
Dear  sirs,
Please help with the following.
I would like to know how to access extra parameters (besides username and password), when dealing with Spring Security Login form.
Please, assist.
A sample of code will be helpful.

Omer
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018

Commented:
What kind of information you want to pass?

Author

Commented:
I would to pass the company code, as it is a multi company app.
I solved the problem. I missed to set the name attribute. I had only the id attribute.
With this set, I autowired the HttpServletRequest and was able to access the parameter
I solved the problem. I missed to set the name attribute. I had only the id attribute.
With this set, I autowired the HttpServletRequest and was able to access the parameter

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial