Cloudflare Access can integrate with Citrix ADC (formerly Citrix NetScaler ADC) as a SAML IdP. Documentation from Citrix shows you how to configure Citrix ADC as a SAML IdP. These steps are specific to Access.
Configure 2 SAML certificates:
A certificate to terminate TLS at the vServer.
Ensure that the certificate is issued by a publicly trusted CA.
A certificate for signing SAML assertions. If you do not already have a certificate for signing SAML assertions, you can use a self-signed certificate generated on Citrix ADC by following these steps:
Select Configuration and enter a Certificate File Name, Fully Qualified Domain Name, and a select a Country.
Create a publicly accessible authentication vServer and configure the user identity source (like, local users, LDAP) by following this Citrix documentation.
For the rest of this example, the user refers to the IdP address
Navigate to Security > AAA - Application Traffic > Policies > Authentication > Advanced Policies > SAML IDP to add a new profile.
Include the following required configuration details:
Name: This is the IdP certificate name you defined in Step 1.
Assertion Consumer Service URL:
IdP Certificate Name: This is the certificate name you defined in Step 1.
Service Provider ID:
Name ID Format: EmailAddress
email = AAA.USER.ATTRIBUTE("email")
Cloudflare Access currently sends the IdP address in place of the Service Provider ID for the AuthN request.
Create an Authentication Policy that refers to the Profile just created, and bind it to the authentication vServer mentioned above.
To configure all of the above using just the CLI, run the following:
add authentication samlIdPProfile samlProf_CloudflareAccess \ -samlIdPCertName SAML_Signing \ -assertionConsumerServiceURL "https://example.cloudflareaccess.com/cdn-cgi/access/callback" \ -samlIssuerName "https://idp.yourdomain.com/saml/login" \ -rejectUnsignedRequests OFF \ -NameIDFormat emailAddress \ -Attribute1 email \ -Attribute1Expr "AAA.USER.ATTRIBUTE(\"email\")" \ -Attribute1Format Basic \ -serviceProviderID "https://idp.yourdomain.com/saml/login" add authentication samlIdPPolicy samlPol_CloudflareAccess -rule true -action samlProf_CloudflareAccess bind authentication vserver nsidp -policy samlPol_CloudflareAccess
Navigate to your Cloudflare dashboard, select the Access app, and click Login Methods.
Select SAML from the identity provider options.
Configure the fields as follows:
This tests your SAML integration and provides descriptive errors if Access cannot authenticate with your Citrix ADC deployment.
On success, return to the Edit SAML Identity Provider screen and click Save.