Skip to main content
Skip table of contents

CloudFlare - SAML integration

The following page refers to a SAML integration between Cloudflare and TrustBuilder MFA. 


  • A Cloudflare console with administrator rights

  • A TrustBuilder MFA service with administrator rights


The configuration consists of an exchange of metadata between the SP (Cloudflare) and the IdP (TrustBuilder): each provides its metadata to the other. Then, it is necessary to make sure that TrustBuilder provides attributes that match with the attributes requires by Cloudflare.

Step 1: Create TrustBuilder SAML connector

  1. Login to your TrustBuilder MFA administration console.

  2. Go to the Secure Sites tab.

  3. In the "connectors” section, click on Add a connector of type… and select SAML 2.0.

  4. Name your connector.

  5. Click on Add to create the connector.
    This will bring up the TrustBuilder (the Identity Provider) metadata.

  6. Click on ”Download the Idp SAML 2.0 metadata in XML format” to save TrustBuilder metadata. You will need it later in Cloudflare configuration.

  7. Keep this connector window open. You will need to copy/paste the Issuer URL and Single Sign On URL to Cloudflare later in the configuration.

Step 2: Cloudflare configuration

  1. In Zero Trust, go to Settings > Authentication

  2. In Login methods section, click on Add new and select SAML.

    Une image contenant texte, Police, nombre, ligne  Description générée automatiquement
  3. Choose a descriptive name for TrustBuilder.

  4. Drop the TrustBuilder metadata (the XML file previously downloaded) to upload them.
    The Single sign-on URL, the Entity ID or Issuer URL, and the Signing certificate parameters are filled out automatically.

  5. Click Save.

Step 3: Generate Cloudflare metadata

To allow Cloudflare and TrustBuilder to communicate, you should generate Cloudflare (the SP) metadata and provide them to TrustBuilder (the IdP).

Use the following Cloudflare endpoint to download its metadata: https://<your-team-name>

You can find your team’s name in Zero Trust under Settings > Custom Page

Step 4: Finalize TrustBuilder SAML connector

  1. In TrustBuilder SAML 2.0 connector, paste the Cloudflare (SP) metadata.

  2. Click on Update to save the configuration and unlock the remaining parameters.

  3. Configure SAML Attributes to match with the attributes in Cloudflare.
    In this integration, Cloudflare uses the Name ID attribute set to Email format with the value of emailAddress. 

    Set TrustBuilder Connector as below.

  4. Click on Update to save the configuration.

  5. If not automatically created, add the Secure Site associated to the connector (Secure Sites tab > Add a Secure Site of type … > Select your connector’s name).

Test the integration

To apply TrustBuilder MFA during the enrolment process of Cloudflare WARP agent:

  1. Go to Zero Trust > Settings > Warp Client 

  2. Under Device enrollment, click on Manage.

  3. Navigate to Authentication and select SAML TrustBuilder identity provider.

    Une image contenant texte, logiciel, Police, nombre  Description générée automatiquement
  4. Test the integration:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.