russdill / juniper-vpn-py

Python Juniper VPN Authenticator
GNU Lesser General Public License v2.1
103 stars 80 forks source link

Add support for additional 2-factor scenarios #4

Closed seanmil closed 9 years ago

seanmil commented 9 years ago

Examine the login form received for a second password field and, if found, assume we need to prompt for a secondary password for a 2-factor auth system (e.g. hardware tokens).

Our site uses RSA SecurID tokens for two-factor authentication. We prompt for the primary and secondary passwords together on the login page. This patch enables prompting for the token ID if there is a second password field found and, if not, it doesn't break or change the existing behavior.