Skip to content
Dashboard
Theme
Theme

Microsoft Entra ID OIDC single sign-on

Set up OIDC single sign-on with Microsoft Entra ID

View Markdown

Create an OpenID Connect app in Microsoft Entra ID, add the redirect URI from this setup, assign your users and enter the app’s issuer and credentials here.

The values in braces, such as {redirect_uri}, are specific to your connection. The setup link from the application you are connecting shows them with a copy button. The same steps appear there.

  1. In the admin console of Microsoft Entra ID, create a new OpenID Connect web application for this app: a confidential client that signs users in with the authorization code flow. Give it a name your users will recognize.

  2. Add {redirect_uri} to the app’s sign-in redirect URIs, exactly as shown. A redirect URI that differs by one character is refused.

    Paste into Microsoft Entra ID:

    • Redirect URI: {redirect_uri}

    Fixes: oidc_token_exchange_failed

  3. Allow the openid, email and profile scopes, so the ID token carries the email, email_verified, given_name and family_name claims. Microsoft Entra ID may leave out email_verified; this app then trusts the email claim only for the domains your organization verified with it.

    Fixes: oidc_email_missing, oidc_email_not_verified

  4. To send groups, add a groups claim with the user’s group names to the ID token. Microsoft Entra ID does not send groups unless you add this claim.

  5. Assign the people or groups who should sign in to this app with single sign-on.

  6. Copy the app’s client ID and client secret into this setup. Keep the secret only here, and enter a new one in this setup whenever you rotate it.

    Fixes: oidc_token_exchange_failed

  7. Enter the issuer URL in this setup. For Microsoft Entra ID it has the form “https://login.microsoftonline.com/your-tenant-id/v2.0”. We read the provider’s endpoints and keys from the issuer’s /.well-known/openid-configuration document.

    Fixes: oidc_discovery_unreachable, oidc_id_token_invalid

  8. Run a test sign-in in this setup, signing in as a user you assigned to the app.