配置 Citrix Gateway 虚拟服务器以进行 Microsoft ADAL 令牌身份验证

Last published : Oct 14, 2026
要配置 Citrix Gateway 虚拟服务器以监视 Microsoft ADAL 令牌身份验证,您需要以下信息:
  • CertendPoint:包含用于 ADAL 令牌验证的 Json Web 密钥 (JWK) 的端点的 URL。
  • 受众:应用程序向其发送 ADAL 令牌的 Citrix ADC 虚拟服务器的 FQDN。
  • 发行人:AAD 发行人的名称。默认情况下会填充。
  • tenAntiD:Azure ADAL 注册的租户 ID。
  • ClientId:作为 ADAL 注册的一部分提供给 Gateway 应用程序的唯一 ID。
  • ClientSecret:作为 ADAL 注册的一部分提供给 Gateway 应用程序的密钥。
  1. 创建 OAuthAction:
    add authentication OAuthAction \<oauth_action_name> -OAuthType INTUNE –clientid \<client_id> - clientsecret \<client_secret> -audience \<audience\> -tenantid \<tenantID\> -issuer \<issuer_name> - userNameField upn-certEndpoint \<certEndpoint_name>
    示例:
    add authentication OAuthAction tmp_action -OAuthType INTUNE -clientid id 1204 -clientsecret a -audience " http://hello" -tenantid xxxx -issuer " https://hello" -userNameField upn -certEndpoint <https://login.microsoftonline.com/common/discovery/v2.0/keys>
  2. 创建与新创建的 OAuth 关联的身份验证策略:
    add authentication Policy \&lt;policy_name> -rule true -action \&lt;oauth intune action>
    示例:
    add authentication Policy oauth_intune_pol -rule true -action tmp_action
  3. 将新创建的 OAuth 绑定到 AuthVS:
    bind authentication vserver \&lt;auth_vserver> -policy \&lt;oauth_intune_policy> -priority 2 -gotoPriorityExpression END
    示例:
    bind authentication vserver auth_vs_for_gw1_intune -policy oauth_pol -priority 2 -gotoPriorityExpression END
  4. 创建 LoginSchema:
    add authentication loginSchema \&lt;loginSchemaName\> -authenticationSchema <authenticationSchema”location”>
    add authentication loginSchemaPolicy \&lt;loginSchemaPolicyName\> -rule true -action \&lt;loginSchemaName\>
    示例:
    add authentication loginSchema oauth_loginschema -authenticationSchema "/nsconfig/loginschema/LoginSchema/OnlyOAuthToken.xml"
    add authentication loginSchemaPolicy oauth_loginschema_pol -rule true -action oauth_loginschema​
  5. 将 AuthVS 与 LoginSchema 绑定:
    bind authentication vserver \&lt;auth_vs> -policy \&lt;oauth_pol> -priority 2 -gotoPriorityExpression END
    示例:
    bind authentication vserver auth_vs_for_gw1_intune -policy oauth_loginschema_pol -priority 2 -gotoPriorityExpression END
  6. 添加 authnprofile 并将其分配给 VPN 虚拟服务器:
    add authnprofile \&lt;nfactor_profile_name>-authnvsName \&lt;authvserver\>
    set vpn vserver \&lt;vserverName\>-authnprofile <nfactor_profile_name​>
    示例:
    add authnprofile nfactor_prof_intune -authnvsName auth_vs_for_gw1_intune
    set vpn vserver gw1_intune-authnprofile nfactor_prof_intune