How can I add 2FA for all login modules?

I'm adding a second factor to the authentication process using this:

So far, I've extended FormAuthenticator and added the 2FA overriding the method handleLoginPrompt. Now it works when user logged using forms based authentication but it does not have effect when user uses kerberos.

Is there any way of doing this for every login no matter what module the user uses? Do I have to extend every LoginModule?

Thanks in advance.

0 votes

0 answers