Skip to content

triauth for Cloudflare AccessOIDC

Protect your internal apps with Cloudflare Access, and let your team through with one approval on their own device.

  • Access and networking
  • Cloud service
Sign-in through
OpenID Connect bridge
Available in
All Zero Trust plans
Set up in
Zero Trust › Integrations › Identity providers

About Cloudflare Access

Cloudflare Access sits in front of a company's internal web apps and servers and checks who is signing in before letting them through, in place of a VPN. Teams use it to protect admin panels, intranets, and self-hosted tools without exposing them to the open internet.

Connect Cloudflare Access to triauth

Cloudflare Access signs people in through the triauth OpenID Connect bridge, added as an identity provider. Once connected, every app you protect shows a sign-in page where people pick the new method, type their username, and approve on their own device. One connection covers all of them, and when someone leaves, removing their identity records at your domain ends their access to every protected app at once.

How it works

  1. In the Zero Trust dashboard, find your team name under Settings › Team name and domain. Open oidc.triauth.org, enter your domain, paste the redirect address https://yourteam.cloudflareaccess.com/cdn-cgi/access/callback with your team name in place of yourteam, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Under Integrations › Identity providers, click Add new identity provider and choose OpenID Connect. Name it, paste the client ID and the client secret, and enter the three addresses below with your domain in place of example.com. Save.

    FieldValue
    Auth URLhttps://oidc.triauth.org/example.com/authorize
    Token URLhttps://oidc.triauth.org/example.com/token
    Certificate URLhttps://oidc.triauth.org/example.com/jwks
  3. Under Authentication › Login methods, click Test next to the new method. Then open one of your Access applications and pick the new method on its sign-in page.

Checkpoint

The Access sign-in page of a protected app lists the new method. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.

Good to know

  • Access keeps no accounts of its own. It lets a person through when one of your rules matches them, by email address, by your domain, or by group. The apps behind Access keep their own accounts.
  • Rules by group need the groups claim, which the bridge sends when the groups scope is requested. The dashboard has no scope setting, so the person who connects the app sets the scopes through Cloudflare's API or Terraform.
  • Access remembers a sign-in for its session length, a day unless you change it, and then asks for one approval again.

For the person who connects the app

SettingValue
Redirect addresshttps://<team name>.cloudflareaccess.com/cdn-cgi/access/callback
Where in CloudflareZero Trust › Integrations › Identity providers › Add new identity provider › OpenID Connect
Addressesthe authorization, token, and JWKS addresses go in one by one, as in the table above, since Access does not read the discovery document
PKCEoptional, Proof of Key Exchange (PKCE) in the provider's settings
Scopesopenid email profile groups through the API or Terraform, when rules by group are wanted

Access reads the claims from the ID token, which carries the email address and the groups. Cloudflare's generic OIDC guide explains every field.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.