triauth for Cloudflare AccessOIDC
Protect your internal apps with Cloudflare Access, and let your team through with one approval on their own device.
- 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
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/callbackwith your team name in place ofyourteam, and click Connect app. The bridge gives you a client ID and a client secret.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.Field Value Auth URL https://oidc.triauth.org/example.com/authorizeToken URL https://oidc.triauth.org/example.com/tokenCertificate URL https://oidc.triauth.org/example.com/jwksUnder 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
groupsclaim, which the bridge sends when thegroupsscope 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
| Setting | Value |
|---|---|
| Redirect address | https://<team name>.cloudflareaccess.com/cdn-cgi/access/callback |
| Where in Cloudflare | Zero Trust › Integrations › Identity providers › Add new identity provider › OpenID Connect |
| Addresses | the authorization, token, and JWKS addresses go in one by one, as in the table above, since Access does not read the discovery document |
| PKCE | optional, Proof of Key Exchange (PKCE) in the provider's settings |
| Scopes | openid 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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish teams and write Access rules by group.
- Read Cloudflare's generic OIDC guide for every setting Access offers.
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.