Manage enterprise connections
Auth and access
Use an OpenID Connect enterprise connection to connect any identity provider (IdP) that supports OpenID Connect, such as Okta, Auth0, Keycloak, Ping Identity or Microsoft Entra ID, without a provider-specific integration.
You only enter the provider’s issuer URL, client ID and client secret. When a user signs in, Kinde reads the provider’s endpoints and signing keys from its OpenID configuration at <issuer>/.well-known/openid-configuration, so you don’t enter an authorization, token or userinfo URL. Kinde caches the configuration for up to an hour, so endpoint changes at your provider can take that long to apply. It re-reads the signing keys regularly, and as soon as a token is signed with a new key, so key rotation needs no action.
Sign-in uses the authorization code flow with PKCE and a nonce. Kinde validates the ID token (signature, issuer, audience and expiry) and takes the user’s profile from it, filling in from the provider’s userinfo endpoint if it has one.
OpenID Connect connections count toward the enterprise connections in your plan. See How many enterprise connections can I have?
You can also pass upstream params to the IdP.
issuer value in its OpenID configuration, for example https://example.okta.com.client_secret_basic) or the request body (client_secret_post). Client authentication with a private key (private_key_jwt) isn’t supported.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 Connection name. Make this something you can easily identify, especially if you are adding multiple connections for different business customers.
Enter the Issuer URL of your identity provider, exactly as it appears in its OpenID configuration, for example https://example.okta.com.
issuer exactly, including any trailing slash./.well-known/openid-configuration instead. Kinde saves the issuer part. If your issuer ends with a slash, such as Auth0’s, enter the issuer itself.Kinde doesn’t contact your provider when you save, so a wrong issuer URL only shows up when someone tries to sign in. See Troubleshooting.
Leave Allowed tenant IDs blank, unless your issuer serves many tenants. Kinde ignores the list for an issuer that belongs to a single tenant. See Connect a multi-tenant identity provider.
Enter the Client ID and Client secret of the application you registered with your identity provider.
Enter Home realm domains. This speeds up the sign-in process for users of those domains.
Note that all home realm domains must be unique across all connections in an environment. For more information about how, see Home realm domains or IdP discovery.
Set the Sign-in button option to control when the SSO button for this connection appears on the auth screen. The option starts on Auto, unless you’ve changed your environment’s default enterprise settings.
If you want to enable just-in-time (JIT) provisioning, select the Create a user record in Kinde option.
If Strict mode is shown, leave it on to keep users on this connection only, or switch it off to let them also sign in with their email without SSO.
For an environment-level connection, under Email address trust, select Verify, then trust. For details about the options, see Trusting emails from providers. Organization-level connections show Auto-add users instead. See Email address trust below for how this connection treats trust.
If you want, select Sync user profiles and attributes on sign in to keep Kinde user profile data in sync with your identity provider.
If you choose this option, ensure that the global profile sync preference is also switched on in Settings > Environment > Policies.
If you want to sync user groups, select Get user groups. Kinde reads the user’s groups from the claim set in Groups claim (step 12).
If you want, change the Scopes and claims. Leave a field blank to use its default.
openid, profile and email. Kinde always requests openid.sub.email. If you set another claim, such as upn, Kinde reads only that claim. If you set Email claim to a claim that holds a list of addresses, such as the emails claim from Azure AD B2C user flows, Kinde uses the first address in the list.given_name.family_name.groups. Set it if your provider sends groups under another claim, such as roles.Copy the Callback URL. You’ll need to add it to your identity provider’s application. If your business has a custom domain, you can select Use custom domain instead.
Add any upstream params that you want to pass to the IdP.
If you use passkeys, you can select Allow passkeys for users of this connection under Passkeys.
Select Save.
Kinde chooses how to send the client secret to your provider from the methods the provider advertises (token_endpoint_auth_methods_supported), so there is no client authentication setting to choose.
In your identity provider, add the callback URL from step 2 to the application as a redirect URI. If you selected Use custom domain instead, add the custom domain callback URL.
Make sure you test the connection before enabling in production for your users.
An application or organization can’t use the connection until its issuer URL, client ID and client secret are all set. If one is missing, Kinde doesn’t save the change:
While an application or organization uses the connection, you can’t clear these values.
Some identity providers have one issuer URL that serves many tenants. For example, a Microsoft Entra ID multi-tenant app can use https://login.microsoftonline.com/organizations/v2.0 or https://login.microsoftonline.com/common/v2.0. The OpenID configuration of such an issuer gives a template, such as https://login.microsoftonline.com/{tenantid}/v2.0, rather than one issuer.
To use a multi-tenant issuer:
https://login.microsoftonline.com/organizations/v2.0.When a user signs in, Kinde checks that the ID token’s tenant (the tid claim) is in your list. It also checks that the token’s issuer is the issuer for that tenant. Users from any other tenant see an error and can’t sign in. Tenant IDs that are GUIDs are matched regardless of letter case. Other tenant IDs must match exactly.
You must list at least one tenant. Until you do, sign-in through the connection stops at Kinde. After the first attempted sign-in, a banner on your dashboard tells you to list the tenants.
Kinde doesn’t tie a tenant to an organization. A user from any listed tenant can sign in to every organization the connection is enabled for. To keep each customer’s tenant to their own organization, add a connection for each organization (Step 1, Option 1) that lists only that customer’s tenant.
On a connection shared across organizations, if you list more than one tenant, set Email address trust to Verify, then trust. An admin of any listed tenant can set the email addresses of that tenant’s users, and Microsoft Entra ID tokens don’t say whether an address is verified. With Trust, a user from one tenant could be signed in to the Kinde account of a user with the same email address. A connection that belongs to an organization never links to an existing user on an email address without a one-time code.
Kinde keeps users from different tenants apart, even if their identity provider gives them the same user ID. If you change an existing connection from a single-tenant issuer to a multi-tenant one, Kinde treats each user’s next sign-in as a new identity through the connection, as it would for a first sign-in, so test this before you change a connection that people already use.
You can set allowed tenant IDs only in the Kinde dashboard or with the Management API. They don’t appear in the self-serve portal, and an edit there keeps them.
The Email address trust options work as for other enterprise connections, with these additions:
email_verified is false in the ID token or userinfo response), Kinde treats a connection set to Trust as Verify, then trust for that sign-in. If the provider doesn’t send email_verified, the setting applies as configured.email_verified describes the provider’s standard email claim. If the connection is set to Trust, set Email claim to a claim your identity provider verifies.You can also create and update OpenID Connect connections with the Kinde Management API, using the strategy oidc:custom. See the API reference for the available options. A PUT request replaces the connection’s settings, so use PATCH to change only some of them.
Organizations can’t add an OpenID Connect connection in the self-serve portal. You can add one for an organization (Step 1, Option 1), and the organization’s admins can then edit, enable, disable or delete it in the portal. See Manage SSO connections added by customers.
When a configuration problem stops users from signing in, a banner appears on the Kinde dashboard. If one connection has a problem, the banner names it. If several do, it shows how many need attention. Open the connection to see the problem under Sign-in through this connection is failing:
The problem is only found when someone tries to sign in, because Kinde doesn’t contact your provider when you save. The banner clears after the next successful sign-in, or when you save a change to the connection’s issuer URL, allowed tenant IDs, client ID, client secret, or scopes and claims. A temporary outage at the provider, such as a timeout or a server error, shows the user an error page but doesn’t raise a banner.