Cloudflare OIDC integration
Multi-Factor Authentication (MFA) is an extra layer of security used when logging into websites or apps. Individuals are authenticated through more than one required security and validation procedure that only they know or have access to.
OIDC (OpenID Connect) is an open standard protocol that provides a way to authenticate and authorize access to applications without giving the application your login credentials.
Workforce Authority by SecureAuth, offers a simple method for adding single sign-on (SSO) MFA to Cloudflare with its OIDC solution.
Prerequisites
-
Configured Workforce Authority instance and user account with administrative privileges for Workforce Authority.
-
Configured Workforce Authority LDAP Agent.
For more information, see the Workforce Authority LDAP Agent deployment guide.
-
User account with administrative privileges for Cloudflare.
Add OIDC application in Workforce Authority
In this section, you'll configure Workforce Authority to act as an OIDC Provider to authenticate the user and grant access to Cloudflare.
-
Log in to Workforce Authority with an administrative account and go to Applications.
-
Click Create New Application.

-
In the New Application form, on the General tab, set the following configurations:
Name Set the name of the application. This is the name to display for push notifications, in the Admin panel, Application portal, and audit logs. For example, Cloudflare-OIDC. Type Set to OAuth/OIDC Application. Template Set to OpenID Connect Relying Party Application [oidc_client]. Out of Band Methods Select the allowed methods end users can choose to approve MFA requests. For example, Workforce Authority Mobile app (push notifications), SMS, or Security Key. Message for MFA Requests Optional. Type a message displayed to end users when sending an MFA request via push notification, SMS, or email. 
-
Select the OAuth/OIDC Configuration tab, and set the following configurations:
Login Login URL Optional. Enter the login URL for your Cloudflare instance. Redirect URLs Enter the redirect URL (Redirect_uri) that Workforce Authority will use to send back the authorization code. You can register more than one redirect URL (Redirect_uri). For example, https://<your-team-name>.cloudflareaccess.com/cdn-cgi/access/callbackClient Settings Application Type Set to Web application. Grant Type Set to Authorization code – User logs in to the application, then the application redirects the flow to Workforce Authority for authentication. After authentication, Workforce Authority returns an authorization code to the application, then exchanges the code for an access token and an identity token. Authentication Method Set to Basic – Basic authentication method that transmits the client secret in clear text. To ensure the security of the client secret, use HTTPS to encrypt the communication. Scopes and Claims Scopes Select the following scopes: Session Access Token Timeout Set how long the access token is valid for before it times out. By default this set to 1 minute. Refresh Token Timeout Set how long the refresh token is valid for before it times out and requires the user to reauthenticate. By default this is set to 1 day. 
-
Save your changes.
-
Edit the configured OIDC application and select the OAuth/OIDC Configuration tab.
-
Copy the UID and Secret values.
You will need these for the Cloudflare configuration.
Cloudflare configuration
In this section, you will configure the Cloudflare application that supports OIDC.
-
Log in to Cloudflare with an administrator account.
-
From the left panel, go to Settings, select Authentication and click OpenID Connect.

-
Set the following configurations.
Name Enter a name for this identity provider to display on the login page. For example, Workforce Authority OpenID Connect. App ID Paste the UID value copied from the Cloudflare OIDC application in Workforce Authority. Client Secret Paste the Secret value copied from the Cloudflare OIDC application in Workforce Authority. Well-known endpoint Open the well-known OIDC discovery endpoint URL in this format: https://oidc.acceptto.com/<organization>/oauth2/v1/.well-known/openid-configurationAuth URL Enter the authorization URL in this format: https://oidc.acceptto.com/<organization>/oauth2/v1/authToken URL Enter the token URL in this format: https://oidc.acceptto.com/<organization>/oauth2/v1/tokenCertificate URL Enter the certificate URL in this format: https://oidc.acceptto.com/<organization>/oauth2/v1/jwks
-
Save your changes.
Test your OIDC application integration
-
Go to the login URL for your Cloudflare application.
-
You will be redirected to the Workforce Authority SSO page.

-
After successful authentication, select your preferred MFA method to approve access to the Cloudflare application.

-
You'll be redirected to the Cloudflare application home page.
Support
If you have questions or need assistance, contact SecureAuth Support.
Sales
Want to learn more about our MFA solutions? Contact our Professional Services for a demo today.
Disclaimer
All product names, trademarks, and registered trademarks are the property of their respective owners.
All company, product, and service names used in this document are for identification purposes only. The use of these names, trademarks, and brands do not constitute an endorsement by the SecureAuth Corporation.