In a SAML request flow, Cloudflare Access functions as the service provider (SP) to the identity provider (IdP). Cloudflare Access sends a SAML request to your IdP. The signing certificate that you upload from your SAML provider verifies the response.
In some cases, administrators need to verify that the request from the SP is authentic. By validating both the requests from the SP and the responses from the IdP, teams can ensure that operations in the SAML relationship are signed in both directions.
Cloudflare Access supports this requirement in the form of Signed AuthN requests. When enabled, Access sends a signature embedded in an HTTP POST request that contains the AuthN details.
To set up Signed AuthN requests:
-
In Cloudflare One, go to Integrations > Identity providers.
-
Under Your identity providers, select Add new identity provider.
-
Choose SAML on the next page.
-
Complete the fields in the dialog, turn on Sign SAML authentication request, and save the identity provider.
-
Go to this URL to find the certificate:
https://<your-team-name>.cloudflareaccess.com/cdn-cgi/access/public-certEnsure that your IdP validation uses the most recent certificate. Cloudflare Access routinely rotates the public key as a security measure.
Cloudflare Access uses a certificate that includes the following 2 distinguished name fields:
- Issuer Distinguished Name -
CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare - Subject Distinguished Name -
CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare
Most IdP configurations require 3 components to enforce AuthN signature verification:
- Certificate issuer distinguished name (DN) ↗︎
- Certificate subject distinguished name
- Public certificate
- Issuer Distinguished Name -
-
Configure your IdP to verify SAML authentication request signatures using the public certificate from the previous step. The exact configuration depends on your IdP.