Manage enterprise connections
Auth and access
If you use Cloudflare to centralize authentication and authorization in your business, you can integrate Kinde as a service provider for these processes. This gives you the benefits of Kinde’s robust auth capabilities, while keeping the familiar Cloudflare structure.
You need to set up an enterprise connection in Kinde for this, and add a Cloudflare application. We recommend setting up and testing the connection in a non-production environment before making available to users.
Depending on your SAML set up, you may need to include advanced configurations for your connection. See Advanced SAML configurations
You can make a connection available only to a specific organization, or you can create it so it can be used across any organization in your business.
Enter a name for the connection. It should match the connection name in Cloudflare.
Enter a random string value for Entity ID, for e.g. 870sa9fbasfasdas23aghkhc12zasfnasd
.
Enter the IdP metadata URL. This URL comes from your identity provider.
Enter a sign in URL if your IdP requires a specific URL.
If you want, select the Sign request algorithm and Protocol binding. The options you choose will depend on what your identity provider prefers or requires.
Select a Name ID format. This helps identify and link user identities between your IdP and Kinde.
Enter an Email key attribute. This is the attribute in the SAML token that contains the user’s email. Setting this value ensures that the email address returned in the SAML response is correctly retrieved. We do not recommend leaving this field blank, but if you do we will set ‘email’ as the attribute.
(Optional) Add a first name and last name key attribute.
Enter any relevant Home realm domains. This is how SAML recognizes a user’s credentials and routes them to the correct sign in page. Note that home realm domains need to be unique across all connections in an environment. Read more about home realm domains.
If you use home realm domains, the sign in button is hidden on the auth screen by default. To show the SSO button, select the Always show sign-in button option.
Copy the reply relevant URL:
If you want to enable just-in-time (JIT) provisioning for users, select the Create a user record in Kinde option. This saves time adding users manually or via API later.
(Temporary feature) Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified.
(Optional) In the Sign SAML request section, paste in the Signed certificate and Private key. You may have got these from your IdP or you may have generated yourself (see procedure above).
Enter any upstream params that you want to pass to the identity provider. Not all providers support this, so check their documentation first.
Select Save.
Sign in to your Cloudflare account.
In the menu, select Zero trust.
Go to Access > Applications, then select Add an application.
Select SaaS as the type of application. The Add application window opens.
Enter an application name or select an application.
Choose Select SAML for the authentication protocol.
Select Add Application. The Configure application page opens.
Add the Entity ID and ACS URL from Kinde.
Copy the SAML Metadata endpoint to your clipboard. You’ll need to enter this back in Kinde.
Scroll through the other sections and then select Save configuration. The Add policies page opens.
Add a policy to define who can access your application. You might do this via an allowlist and groups, or other strategy.
Complete any other relevant sections of the window, and then select Done.