Search code examples
jsfjsf-2j-security-check

Verifying additional parameter with j-security-check


I have implemented web application login using j-security-check which accepts parameters j_username and j_password for authentication with background registry. Now, I need to add date of birth as one more parameter and need to authenticate the user with this parameter too.

Is there a way to extend j-security-check to accept additional parameters? I would like to avoid performing the check in a servlet filter, if possible.

Using WebSphere V8, MyFaces JSF 2.0, Servlet 3.0, Custom database based authentication


Solution

  • The easiest way would be to append the date of birth to the actual j_username (ie. with JavaScript and then manually split it in the login module.