Connecting Entra ID to Cloudflare Access

Admin runbook · May, 2026

Why

Cloudflare Access sits in front of our internal applications and decides who gets in. By wiring it to Microsoft Entra ID (formerly Azure AD) as the identity provider, every login goes through the same corporate credentials, MFA policies, and conditional-access rules you already manage in Entra — no separate passwords or user lists to maintain in Cloudflare.

The result: a user visits a protected app, Cloudflare redirects them to the familiar Microsoft sign-in screen, Entra authenticates and returns a token, and Cloudflare enforces access policies (email domain, group membership, etc.) on top of that.

Before you start

Part 1 — Register the app in Entra ID

Entra portal.azure.com
  1. Sign in to portal.azure.com with your admin account. In the top search bar type Microsoft Entra ID and open it.

  2. In the left sidebar choose App registrations, then click + New registration.

    • Name: Cloudflare Zero Trust (or your preferred label)
    • Supported account types: Accounts in this organizational directory only (single tenant)
    • Redirect URI: Web → paste the URL below
    Redirect URI
    https://stellarai.cloudflareaccess.com/cdn-cgi/access/callback

    Click Register.

  3. On the Overview page that appears, copy and save both values — you will need them in Part 2:

    Application (client) ID
    xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    Directory (tenant) ID
    xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4. In the left sidebar choose Certificates & secrets+ New client secret.

    • Description: Cloudflare Access
    • Expires: choose your org's standard rotation period

    Click Add.

    Copy now The secret Value is shown only once. Copy it immediately and store it in your secrets manager before navigating away.
  5. Go to API permissions+ Add a permissionMicrosoft GraphDelegated permissions.

    Search for and add each of these:

    • email
    • openid
    • profile
    • User.Read
    Optional — group-based policies If you want to use Entra security groups inside Cloudflare Access policies, also add Directory.Read.All (Application permission). This requires admin consent and allows Cloudflare to read group membership.

    Click Grant admin consent for [your org]Yes.

Part 2 — Add Entra ID as a login method in Cloudflare

Cloudflare one.dash.cloudflare.com
  1. Open one.dash.cloudflare.com, select your account, and navigate to Settings → Authentication → Login methods.

  2. Click + Add new and choose Azure AD (Cloudflare's label for Entra ID).

  3. Fill in the form using the values you saved in Part 1:

    • Name: Entra ID (displayed to users on the login screen)
    • App ID: Application (client) ID from step 3
    • Client secret: secret Value from step 4
    • Directory ID: Directory (tenant) ID from step 3

    If you granted Directory.Read.All in step 5, toggle Support groups on.

  4. Click Test. A new browser tab opens with a Microsoft login prompt. Sign in with a regular employee account.

    Success looks like "Your connection is working" — Cloudflare shows the authenticated user's email. Close the test tab and return.
    If the test fails Double-check the redirect URI in Entra exactly matches your team domain, and confirm admin consent was granted in step 5.
  5. Click Save.

Part 3 — Apply to Access applications

The identity provider is now available but not yet enforced. For each application you want to protect:

  1. Go to Access → Applications, open an existing app (or create a new one).

  2. On the app's Authentication tab, under Identity providers, select Entra ID (the name you set in Part 2, step 3) and deselect any providers you no longer want.

  3. In the app's Policies tab, you can now write rules using Entra attributes, for example:

    • Emails ending with @getstellar.ai
    • Members of a specific Entra security group (requires groups toggle from Part 2)
  4. Click Save application and test access with an end-user account.

Ongoing maintenance