duosecurity/duo_openvpn_as — pull request #1 by mikeclarke (2013-10-01 05:02:33+00:00)
Title: Add option to skip MFA for vpn_auth connections

For our use case, we found it was best to force Duo secondary authentication for logins via the web UI (user & admin login) but skip the hassle of the challenge / response flow when a certificate is presented for vpn_auth.

This diff adds a new global setting `SKIP_DUO_ON_VPN_AUTH` that shortcuts the need for MFA if `vpn_auth` is True in the attributes dictionary. The original script behavior is the default.