Richard Faulkner
12/04/2025, 3:16 PMJeff Riechers
12/04/2025, 3:48 PMRichard Faulkner
12/04/2025, 3:59 PMJeff Riechers
12/04/2025, 4:41 PMRichard Faulkner
12/04/2025, 4:42 PMJeff Riechers
12/04/2025, 4:43 PM<Login Schema to capture Username and Password>
add authentication loginSchema LSCHEMA_PROFILE_OAUTH_DUO -authenticationSchema "/nsconfig/loginschema/LoginSchema/SingleAuth.xml" -userCredentialIndex 15 -passwordCredentialIndex 16 -SSOCredentials YES
add authentication loginSchemaPolicy LSCHEMA_POLICY_OAUTH_DUO -rule true -action LSCHEMA_PROFILE_OAUTH_DUO
<OAuth Action for Duo>
add authentication OAuthAction AUTH_ACTION_OAUTH_DuoAuthenticationProxy -authorizationEndpoint "https://api-<your API>.duosecurity.com/oauth/v1/authorize\?scope=openid" -tokenEndpoint "https://api-<your API>.duosecurity.com/oauth/v1/token" -clientID <Your ID> -clientSecret <Your Secret> -OAuthMiscFlags EnableJWTRequest -PKCE DISABLED -tokenEndpointAuthMethod client_secret_jwt
<Policy for LDAP and OAuth>
add authentication Policy AUTH-LDAP -rule true -action <LDAP Action>
add authentication Policy AUTH_POLICY_OAUTH_DUO -rule true -action AUTH_ACTION_OAUTH_DuoAuthenticationProxy
<Policy Label for OAuth>
add authentication policylabel AUTH_POLICYLABEL_OAUTH_DuoAuthenticationProxy -loginSchema LSCHEMA_INT
bind authentication policylabel AUTH_POLICYLABEL_OAUTH_DuoAuthenticationProxy -policyName AUTH_POLICY_OAUTH_DUO -priority 100 -gotoPriorityExpression NEXT
<AAA Virtual Server>
add authentication vserver AAA_VS_DuoOauth SSL 0.0.0.0
bind authentication vserver AAA_VS_DuoOauth -policy LSCHEMA_POLICY_OAUTH_DUO -priority 100 -gotoPriorityExpression END
bind authentication vserver AAA_VS_DuoOauth -policy AUTH-LDAP -priority 100 -nextFactor AUTH_POLICYLABEL_OAUTH_DuoAuthenticationProxy -gotoPriorityExpression NEXT
bind ssl vserver AAA_VS_DuoOauth -certkeyName <SSL Certificate>
<Authentication Profile bound to new AAA Virtual Server>
add authentication authnProfile AUTH_PROFILE_LDAP_OAUTH_DUO -authnVsName AAA_VS_DuoOauth
<Traffic Policies for SSON with custom login schema positions>
add vpn trafficAction VPN_TF_PROFILE_OAUTH_DUO http -SSO ON -userExpression "AAA.USER.ATTRIBUTE(15)" -passwdExpression "AAA.USER.ATTRIBUTE(16)"
add vpn trafficPolicy VPN_TF_POLICY_OAUTH_DUO true VPN_TF_PROFILE_OAUTH_DUO
bind vpn vserver <VPN Server Name> -policy VPN_TF_POLICY_OAUTH_DUO -priority 100 -gotoPriorityExpression END -type REQUEST
Duo AuthProxy iframe fix for 14.1
add rewrite action delete_cors_header_1_act delete_http_header Cross-Origin-Opener-Policy
add rewrite action delete_cors_header_2_act delete_http_header Cross-Origin-Embedder-Policy
add rewrite action delete_cors_header_3_act delete_http_header Cross-Origin-Resource-Policy
add rewrite policy delete_cors_header_1_pol true delete_cors_header_1_act
add rewrite policy delete_cors_header_2_pol true delete_cors_header_2_act
add rewrite policy delete_cors_header_3_pol true delete_cors_header_3_act
bind vpn vserver <VPN VServer> -policy delete_cors_header_1_pol -priority 100 -gotoPriorityExpression NEXT -type RESPONSE
bind vpn vserver <VPN VServer> -policy delete_cors_header_2_pol -priority 110 -gotoPriorityExpression NEXT -type RESPONSE
bind vpn vserver <VPN VServer> -policy delete_cors_header_3_pol -priority 120 -gotoPriorityExpression NEXT -type RESPONSEJeff Riechers
12/04/2025, 4:44 PMRichard Faulkner
12/04/2025, 4:44 PMJeff Riechers
12/04/2025, 4:45 PMJeff Riechers
12/04/2025, 4:46 PMRichard Faulkner
12/04/2025, 4:50 PMJon Bucud
12/04/2025, 10:00 PMJon Bucud
12/04/2025, 10:00 PMSrinivasan Shanmugam
12/10/2025, 11:39 PMRichard Faulkner
12/11/2025, 2:40 AM