users@glassfish.java.net

[gf-users] Adding a two-factor authentication realm

From: Ali Gholami <gholami_at_kth.se>
Date: Wed, 19 Nov 2014 20:41:28 +0100

I'm trying to add a custom realm for Google authenticator in Glassfish
to authenticate users with 2factor authentication. In this case users
have a ordinary password and one-time generated password.

My problem is using the login method in " HttpServletRequest" that can
accept only two parameters "username, password". Since I have another
password I need to pass
three parameters to login to authenticate users via Glassfish server.


Does anyone knows how to solve this issue?

Thanks in advance
Ali