Skip to content
  • Auth and access
  • Enterprise connections

OpenID Connect enterprise connection

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.

Before you begin

Link to this section
  • In your identity provider, register a web application (a confidential client) that uses the authorization code flow. Copy its client ID and client secret.
  • Find your provider’s issuer URL. This is the issuer value in its OpenID configuration, for example https://example.okta.com.
  • Check that your provider meets these requirements:
    • Its OpenID configuration, token, signing key (JWKS) and userinfo endpoints are reachable from the public internet over HTTPS. Kinde doesn’t connect to private or internal network addresses, so a provider that is only reachable inside your network won’t work.
    • It signs ID tokens with an asymmetric algorithm (RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512 or EdDSA). Tokens signed with HS256 or another shared-secret algorithm are refused. Some providers, such as Auth0, let you choose the algorithm per application.
    • It accepts the client secret in the authorization header (client_secret_basic) or the request body (client_secret_post). Client authentication with a private key (private_key_jwt) isn’t supported.
  • We recommend you test connections in a non-production environment before activating in a live environment.

Step 1: Add the connection in Kinde

Link to this section

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.

Option 1: Add a connection for a specific organization

Link to this section
  1. Go to Organizations and open the organization.
  2. In the menu, select Authentication, then select Add connection.
  3. Select Organization SSO connection, then select Next.
  4. Select OpenID Connect, then select Next.
  5. Next: ‘Step 2: Configure the connection’.

Option 2: Add a connection that can be shared across multiple organizations

Link to this section
  1. Go to Settings > Environment > Authentication.
  2. Scroll to the Enterprise connections section and select Add connection.
  3. Select OpenID Connect, then select Next.
  4. Next: ‘Step 2: Configure the connection’.

Step 2: Configure the connection

Link to this section
  1. Enter a Connection name. Make this something you can easily identify, especially if you are adding multiple connections for different business customers.

  2. Enter the Issuer URL of your identity provider, exactly as it appears in its OpenID configuration, for example https://example.okta.com.

    • It must be an HTTPS URL with no username, password, query string or fragment.
    • It must match the provider’s issuer exactly, including any trailing slash.
    • You can paste the discovery URL ending in /.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.

  3. 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.

  4. Enter the Client ID and Client secret of the application you registered with your identity provider.

  5. Enter Home realm domains. This speeds up the sign-in process for users of those domains.

  6. 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.

    • Auto — the button is shown only if the connection has no home realm domains.
    • Show — the button is always shown, even if home realm domains are set.
    • Hide — the button is never shown. Home realm discovery still works.
  7. If you want to enable just-in-time (JIT) provisioning, select the Create a user record in Kinde option.

  8. 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.

  9. 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.

  10. If you want, select Sync user profiles and attributes on sign in to keep Kinde user profile data in sync with your identity provider.

  11. 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).

  12. If you want, change the Scopes and claims. Leave a field blank to use its default.

    • Scopes — the scopes to request, one per line. Leave blank to request openid, profile and email. Kinde always requests openid.
    • User ID claim — the claim that identifies the user. Defaults to sub.
    • Email claim — the claim that holds the user’s email address. Defaults to 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.
    • First name claim — defaults to given_name.
    • Last name claim — defaults to family_name.
    • Groups claim — the claim that holds the user’s groups, read when Get user groups is on. Defaults to groups. Set it if your provider sends groups under another claim, such as roles.
  13. 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.

  14. Add any upstream params that you want to pass to the IdP.

  15. If you use passkeys, you can select Allow passkeys for users of this connection under Passkeys.

  16. 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.

Step 3: Add the callback URL to your identity provider

Link to this section

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.

Step 4: Enable the connection in Kinde

Link to this section

Make sure you test the connection before enabling in production for your users.

  1. Open the connection configuration page in Kinde.
  2. Switch on the connection. This will make it instantly available to users if this is your production environment.
    1. For environment-level connections, scroll down and select the apps that will use the auth method.
    2. For organization-level connections, scroll down and select if you want to switch this on for the org.
  3. Select Save.

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:

  • In the connection window, the missing field shows an error, for example “Since connection name is enabled in an application, you must include the issuer URL.”
  • On an application’s or organization’s Authentication page, Kinde shows “Please configure an issuer URL, client ID and client secret to enable connection name authentication.”

While an application or organization uses the connection, you can’t clear these values.

Step 5: Test the connection

Link to this section
  1. Go to your test application and attempt to sign in.
  2. If the connection’s sign-in button is shown, select it to proceed. The button is shown when Sign-in button is Show, or Auto with no home realm domains. With Hide, there is no button.
  3. If you set Home realm domains, enter an email address at one of those domains. You’re redirected to your IdP sign-in screen.
  4. Enter your IdP details and complete any additional authentication required.

Connect a multi-tenant identity provider

Link to this section

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:

  1. In Issuer URL, enter the multi-tenant issuer, for example https://login.microsoftonline.com/organizations/v2.0.
  2. In Allowed tenant IDs, enter the ID of each tenant whose users may sign in, one per line. For Entra ID, this is the Directory (tenant) ID of each customer’s tenant. You can list up to 100 tenant IDs. Each can contain letters, numbers, dots, hyphens and underscores, up to 128 characters.
  3. Select Save.

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 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.

Email address trust

Link to this section

The Email address trust options work as for other enterprise connections, with these additions:

  • If the provider says the email address is not verified (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.
  • On a connection that belongs to an organization, Email address trust isn’t shown, and Kinde treats Trust as Verify, then trust at sign-in, however the connection was set up. This is because the organization’s admins can change the connection’s identity provider in the self-serve portal.

Manage the connection with the Management API

Link to this section

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.

Self-serve portal

Link to this section

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.

Troubleshooting

Link to this section

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 identity provider’s OpenID configuration could not be read. Check the issuer URL set on the connection.”
  • “The issuer in the identity provider’s OpenID configuration does not match the issuer URL set on the connection. They must match exactly, including any trailing slash.”
  • “The issuer URL serves more than one tenant. List the tenant IDs allowed to sign in on the connection, or use the issuer URL of your own tenant.” See Connect a multi-tenant identity provider.
  • “The identity provider rejected the connection’s client ID or secret.” Check the client ID and secret, and whether the secret has expired.
  • “The identity provider does not allow this application to sign users in.” Check that the application in your identity provider allows the authorization code flow.
  • “The ID token was issued for a different client. Check the client ID set on the connection.”
  • “The ID token was issued by a different issuer than the issuer URL set on the connection.”
  • “The ID token from the identity provider could not be verified with the keys from its JWKS URL.”

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.