Skip to content

Configuring an OpenID Connect (OIDC): An identity layer built on top of OAuth 2.0 that lets applications verify the identity of a user or workload and obtain basic profile information using JSON Web Tokens (JWTs).Learn more(opens in new tab) 1.0 Identity Provider (IdP) allows you to offer alternate authentication methods for how users sign in to your Aembit Tenant: Aembit Tenants serve as isolated, dedicated environments within Aembit that provide complete separation of administrative domains and security configurations.Learn more. For example, Single Sign-On (SSO) instead of the default authentication method of an email and password.

When you configure an OIDC-capable IdP in your Aembit Tenant, Aembit provides a redirect URL that you must configure in your third-party IdP.

Before you configure an OIDC 1.0 Identity Provider, ensure:

  • You have administrator access to both your Aembit Tenant and your Identity Provider.

  • You have registered Aembit as an OIDC application in your Identity Provider and have the necessary credentials (such as Client ID and, if applicable, Client Secret) available.

  • You have your Identity Provider’s base URL (also called the issuer URL or OIDC discovery endpoint).

  • You have your OIDC application’s Client ID from your Identity Provider.

To configure an OIDC 1.0 IdP to work with Aembit, follow these steps:

  1. Log into your Aembit Tenant.

  2. Click Administration in the left sidebar.

  3. Select Administration ☰ Identity Providers.

    Aembit displays the Identity Providers page with a list of existing Identity Providers.

  4. Click + New, revealing the Identity Provider pop out menu.

    Adding a Identity Provider page

  5. On the Details tab, fill out the following fields:

    • Name - The name of the OIDC Identity Provider (for example, Okta OIDC or Azure OIDC).

    • Description - A description of the OIDC Identity Provider (this is optional).

    • Identity Provider Type - Select OIDC 1.0 from the dropdown.

    • Identity Provider Base URL - The OIDC base URL of your Identity Provider, typically the issuer URL or OIDC discovery endpoint. See Provider-specific examples for guidance on finding this URL of your IdP.

    • Identity Provider Client ID - The Client ID from your OIDC application in your Identity Provider.

    • Identity Provider Scopes - The OIDC scopes required for authentication.

    • PKCE Required - Enable this checkbox to require PKCE (Proof Key for Code Exchange): An OAuth 2.0 extension that prevents authorization code interception attacks. The client creates a cryptographic challenge during the authorization request and proves possession of the original secret when exchanging the code for a token.Learn more(opens in new tab), an additional security layer for OAuth 2.0 flows. Aembit recommends leaving this enabled for enhanced security.

    • Authentication Method - Choose between Client Secret and Public Private Keypair:

      • Client Secret - If you select this option, you need to enter the client secret from your OIDC application in the Client Secret field.

      • Public Private Keypair - Configure the JWKS URL that Aembit provides in your IdP, and ensure your IdP can reach it over the internet for key validation. This allows secure communication using JWT signing without requiring a client secret.

  6. Optionally, in the Mappings tab of the Identity Provider page you can specify mapping information between group claims configured in your IdP and user roles available in your Aembit Tenant.

    Adding this information enables automatic user creation based on the information in the OIDC ID token sent by your IdP.

    See Configure automatic user creation for more information.

  7. Optionally, on the Details tab, turn on User Groups & MCP Policy Access so Aembit can read your users’ groups from UserInfo and keep them current for Access Policies. See Configure user group lookup.

  8. Click Save.

    Aembit displays the newly created OIDC IdP on the Identity Provider page. Now, when users log in to your Aembit Tenant, the login UI displays the available OIDC SSO option.

  9. Click the new Identity Provider to open it, and copy its Aembit Redirect URL.

    Aembit displays the Aembit Redirect URL only after you save the Identity Provider. Configure this URL in your third-party IdP as the redirect URI or callback URL of your OIDC application.

To use the Aembit integration from the Okta app catalog instead of a custom application, see How to set up Okta SSO with your Aembit Tenant.

Follow these steps to configure Okta as an OIDC 1.0 Identity Provider for Aembit.

  1. In Okta, create a new OIDC application or select an existing one.

  2. Copy the Client ID from the application’s settings.

  3. For the Identity Provider Base URL, use your Okta domain in this format: https://your-domain.okta.com

  4. If using Public Private Keypair:

    • In Okta, go to your application’s General Settings.

    • Set Client authentication to Public key / Private key.

    • Enable Require Proof Key for Code Exchange (PKCE).

    • Configure the JWKS URL option and paste the JWKS URL provided by Aembit.

  5. If using Client Secret:

    • Copy the client secret from your Okta application.

    • Paste it into the Client Secret field in Aembit.

  6. Save the Identity Provider in Aembit, then open it and copy its Aembit Redirect URL.

  7. In Okta, add the Aembit Redirect URL to your application’s Sign-in redirect URIs, and save the application.

Before enabling “Require Single Sign On” for your entire organization, test your OIDC SSO configuration:

  1. Open an incognito or private browser window.

  2. Go to your Aembit Tenant login page.

  3. Click your new OIDC SSO option (for example, “Okta OIDC” or “Azure OIDC”).

  4. Verify your browser redirects to your IdP’s login page.

  5. Log in using your IdP credentials.

  6. Verify your browser redirects back to Aembit and you log in successfully.

  7. Do not enable “Require Single Sign On” in your Sign-On Policy until you have successfully tested SSO login with at least one user.

The following sections describe common issues you might encounter when setting up OIDC SSO and how to resolve them.

Solution: Wait a few moments and refresh the page. If the button still does not appear, verify that you clicked Save in the Identity Provider configuration.

Solution: Verify that the Redirect URL in your IdP exactly matches the Redirect URL provided by Aembit.

Solution: Ensure that you enable PKCE in both Aembit (PKCE Required checkbox) and your IdP’s OIDC application settings.

Solution: If using Public Private Keypair authentication, verify that your IdP can access the JWKS URL provided by Aembit. Check for any firewall or network restrictions that might block this URL.