Area: Deployment Issues
Sub-Area: SSO / OIDC Configuration
Applies to: OSS + Cloud
Issue
When you register DataHub as an OIDC application in your Identity Provider (IdP), you need the correct callback URL, the logout URI, the client settings and the scopes. Even with a seemingly correct setup, SSO login can send users back to the DataHub login page with a generic error. This can happen when the IdP app registration is also used for another protocol such as SAML.
Error Messages
Failed to sign in using Single Sign-On provider. Please try again, or contact your DataHub Administrator.-
Failed to resolve user name claim from profile provided by Identity Provider. Missing attribute. Attribute: '<claim>', Regex: '<regex>', Profile: ...(in the datahub-frontend log)
You Might Be Asking
- What callback URL should I register in my IdP for DataHub OIDC SSO?
- What logout URI should I register?
- Do I need to set up PKCE or a special grant type?
- Does DataHub need a client secret, and which token endpoint authentication method does it use?
- Which OIDC scopes does DataHub need?
- Which claim does DataHub use as the username?
- Why does SSO redirect back to the DataHub login page with an error even though my IdP shows a successful sign-in?
- Why does DataHub OIDC SSO fail when my Microsoft Entra app registration also has SAML configured?
- Do I need to enable group extraction for SSO login to work?
Cause
DataHub sends the user back to /login with the generic "Failed to sign in using Single Sign-On provider" message when the SSO callback fails with an exception, for example when the username claim is missing from the IdP profile. The IdP sign-in itself can succeed while the DataHub callback still fails.
Possible causes:
- The redirect URI registered in the IdP doesn't match the DataHub callback.
- The configured username claim isn't in the profile the IdP returns.
- The client secret or Discovery URI is wrong or expired.
- On Microsoft Entra, the app registration is also enabled for SAML SSO.
Solution
Part 1: Values to register in your IdP
1. Redirect URI (callback URL)
Register this URI. DataHub has no bare /callback endpoint. The route is /callback/<protocol>, so the oidc segment is required. See Initialize OIDC with your IdP.
- DataHub Cloud:
https://<your-domain>.acryl.io/callback/oidc - Self-hosted:
https://<your-datahub-host>/callback/oidc(for a local install,http://localhost:9002/callback/oidc)
In Microsoft Entra, register the redirect URI under the Web platform, not Single-page application.
On DataHub Cloud, the SSO page also shows this redirect URI, read-only. If you save the SSO form while you reach DataHub on a different hostname, the redirect URI changes and login breaks. The page warns you when the stored address and the current address differ.
2. Logout URI
The DataHub guide for IdP setup lists /login as the logout URI:
https://<your-datahub-host>/login
3. Client type, grant and PKCE
- DataHub uses the standard authorization code flow and needs a client secret and a Discovery URI.
- PKCE is on by default. No manual PKCE setup is needed. Self-hosted deployments can turn it off with
AUTH_OIDC_DISABLE_PKCE=true. - The default token endpoint client authentication method is
client_secret_basic.client_secret_postis also supported. Self-hosted, setAUTH_OIDC_CLIENT_AUTHENTICATION_METHOD(see Configure OIDC SSO in DataHub). On Cloud, the SSO form pre-fillsclient_secret_basic.
4. Scopes
The server default scope is openid profile email. The Cloud SSO form pre-fills openid email profile and has a Scope field. Self-hosted, set AUTH_OIDC_SCOPE.
DataHub identifies users by the configured username claim, not always by email. Login fails only if that claim is missing from the profile. email matters only when email is your username claim.
5. Username claim
The username comes from the configured claim:
- Cloud: the User Name Claim field. The form pre-fills
preferred_username. - Self-hosted:
AUTH_OIDC_USER_NAME_CLAIM. If you set nothing, the server default isemail.
A regex (User Name Claim Regex on Cloud, AUTH_OIDC_USER_NAME_CLAIM_REGEX self-hosted, default (.*)) can extract part of the value. For example, ([^@]+) drops the email domain. DataHub builds the user URN from the extracted value, so changing the claim or regex changes which DataHub user logs in.
6. Groups (optional)
Group extraction isn't needed for basic SSO login. It is off by default and works only with JIT provisioning on. See JIT provisioning and group extraction settings.
- Cloud: turn on the Extract Groups toggle in the SSO form.
- Self-hosted: set
AUTH_OIDC_EXTRACT_GROUPS_ENABLED=true.
The groups claim is groups by default (Groups Claim field on Cloud, AUTH_OIDC_GROUPS_CLAIM self-hosted). At each login, DataHub replaces the user's SSO group membership with the groups in the claim. This clears group membership assigned in the DataHub UI. Make sure your IdP adds a groups claim to the ID token. If you use a custom authorization server and request a groups scope, that scope must exist on it.
Cloud vs self-hosted setup
- Cloud: an admin with the Manage Platform Settings privilege changes these in Settings > Platform > SSO. Click Connect, log out, then log in with SSO to test. See DataHub Cloud OIDC SSO integration. You can't set environment variables on Cloud. For log review or anything not in the form, contact DataHub Support.
- Self-hosted: set the
AUTH_OIDC_*environment variables ondatahub-frontend, then restart the frontend container.
Part 2: Troubleshooting a failed SSO login
See also OIDC troubleshooting.
-
Check the redirect URI. Confirm the URI registered in the IdP matches the callback in Part 1 exactly.
-
Check the client secret. In Microsoft Entra, store the secret Value in DataHub, not the secret ID. Confirm the secret hasn't expired.
-
Check the Discovery URI. For Entra it is
https://login.microsoftonline.com/<your-tenant-id>/v2.0/.well-known/openid-configuration. -
Check the username claim. Confirm the configured claim, not only
preferred_username, is present for the test user. If it is missing, the datahub-frontend log shows "Failed to resolve user name claim from profile provided by Identity Provider". If the regex doesn't match the value, the log shows "Failed to extract DataHub username from username claimusing regex ". Self-hosted, read the datahub-frontendcontainer logs, since the SSO callback runs there. On Cloud, contact DataHub Support to review logs. -
Check for a SAML configuration on the same Entra app (Microsoft Entra). Microsoft documents that an Entra app enabled for SAML SSO signs tokens with the SAML certificate, which causes signature validation errors. Microsoft lists these fixes: use a separate app registration, convert the app to OIDC only, or add
?appid=<your-client-id>to the metadata URL:https://login.microsoftonline.com/<your-tenant-id>/v2.0/.well-known/openid-configuration?appid=<your-client-id>See Microsoft: Troubleshooting signature validation errors, scenario 2.
-
Check the IdP sign-in logs. In Microsoft Entra, open Sign-in logs for the application. Check both the interactive and non-interactive tabs. Match the AADSTS error code to the time of the failed attempt.
-
Check access-denied responses. If the IdP returns
error=access_deniedto the DataHub callback, DataHub redirects to the Access Denied Redirect URL if one is set. Otherwise it shows a 401 "Access denied" page. -
Don't make group extraction part of the fix. Get basic SSO working first. Add group extraction afterward.
Additional notes
DataHub Cloud supports OIDC for SSO. It does not support SAML or LDAP. If your organization uses SAML for other apps, register DataHub as its own OIDC application in your IdP.
On self-hosted DataHub, turning on OIDC doesn't turn off the native login at /login. Set AUTH_JAAS_ENABLED=false to turn it off.