Generic OIDC
Cloudflare Access has a generic OpenID Connect (OIDC) connector to help you integrate IdPs not already set in Access.
Set up a generic OIDC
-
Visit your identity provider and create a client/app.
-
When creating a client/app, your IdP may request an authorized redirect URI. Enter the following URL:
You can find your team name in Zero Trust under Settings > Custom Pages.
-
Copy the content of these fields:
- Client ID
- Client secret
- Auth URL: The
authorization_endpoint
URL of your IdP - Token URL: The
token_endpoint
URL of your IdP - Certificate URL: The
jwks_uri
endpoint of your IdP to allow the IdP keys to sign the tokens
You can find these values on your identity provider’s OIDC discovery endpoint. Some providers call this the “well-known URL”.
-
In Zero Trust ↗, go to Settings > Authentication.
-
Under Login methods, select Add new.
-
Choose OpenID Connect..
-
Name your identity provider and fill in the required fields with the information obtained in Step 3.
-
(Optional) Enable Proof of Key Exchange (PKCE) ↗ if the protocol is supported by your IdP. PKCE will be performed on all login attempts.
-
(Optional) Under Optional configurations, enter custom OIDC claims that you wish to add to users’ identity. This information will be available in the user identity endpoint.
-
Select Save.
To test that your connection is working, go to Authentication > Login methods and select Test next to the login method you want to test. On success, a confirmation screen displays.
Optional configurations
OIDC claims
OIDC integrations support the use of custom OIDC claims. Custom OIDC claims can be referenced in Access policies, offering a means to control user access based on these specific attributes. Custom OIDC claims are not currently supported in Gateway policies.
Email claim
You can specify a custom Email claim name that Access will use to identify user emails. This is useful if your IdP does not return the standard email
claim in the OIDC ID token.
Multi-record OIDC claims
Cloudflare Access extends support for multi-record OIDC claims. These claims are parsed out and can be individually referenced in policies. This feature enables granular access control and precise user authorization in applications.
Cloudflare Access does not support partial OIDC claim value references or OIDC scopes.