Troubleshooting SSO Configuration Issue with Azure in DataHub v0.12.0

Original Slack Thread

Hi Team,

I am using DataHub v0.12.0

I am trying to configure SSO login with Azure, I have followed below documentation link to configure it and followed each step as is it is.

I am using Kubernetes to deploy DataHub, so I have added all the environment variable to .yaml file like below.

      value: "true"
      value: "a-3-v-s-s"
      value: "Q~o~I"
      value: "<{tenant_id}/v2.0/.well-known/openid-configuration>"
    - name: AUTH_OIDC_BASE_URL
      value: "<>"
    - name: AUTH_OIDC_SCOPE
      value: "openid profile email"```
And when I access this url I see the below json output as well

  "token_endpoint": "<{tenant_id}/oauth2/v2.0/token>",
  "token_endpoint_auth_methods_supported": [
  "jwks_uri": "<{tenant_id}/discovery/v2.0/keys>",
  "response_modes_supported": [
  "subject_types_supported": [
  "id_token_signing_alg_values_supported": [
  "response_types_supported": [
    "code id_token",
    "id_token token"
  "scopes_supported": [
  "issuer": "<{tenant_id}/v2.0>",
  "request_uri_parameter_supported": false,
  "userinfo_endpoint": "<>",
  "authorization_endpoint": "<{tenant_id}/oauth2/v2.0/authorize>",
  "device_authorization_endpoint": "<{tenant_id}/oauth2/v2.0/devicecode>",
  "http_logout_supported": true,
  "frontchannel_logout_supported": true,
  "end_session_endpoint": "<{tenant_id}/oauth2/v2.0/logout>",
  "claims_supported": [
  "kerberos_endpoint": "<{tenant_id}/kerberos>",
  "tenant_region_scope": "EU",
  "cloud_instance_name": "",
  "cloud_graph_host_name": "",
  "msgraph_host": "",
  "rbac_url": "<>"
Below is the error I am getting now,
front-end - error

`ERROR controllers.AuthenticationController - Caught exception while attempting to redirect to SSO identity provider! It's likely that SSO integration is mis-configured`

UI Error

`Failed to redirect to Single Sign-On provider. Please contact your DataHub Administrator, or refer to server logs for more information.`

Let me know if any other information is required


Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Which DataHub version are you using? (e.g. 0.12.0)
  2. Please post any relevant error logs on the thread!

Hello Mohan, you are missing the azureTenantId setting which is mandatory when using SSO with Azure. That’s why you also see {tenant_id} in the URL instead of an actual GUID that represents your Azure tenant.attachment

Hi <@U042EBB9P1N>, I am using the tenant_id in AUTH_OIDC_DISCOVERY_URI, I just removed it in the question

Ah, I see. Maybe next time you could mention the parts you’ve masked, so we’re not looking in the wrong direction :sweat_smile: What do you see in the datahub-frontend-react pod log files?

please find the below error attachment

Hi <@UV14447EU>, can you help me in resolving the above error.

<@U03MF8MU5P0> or <@U01GCJKA8P9> might can help here

Hello Mohan, now that I think of it and looking at the error message, it could be a problem with one of the probes in the datahub-gms pod. I’ve had a similar error message in our own environment in the past where GMS wouldn’t start serving requests (which might explain why SSO isn’t working). My assumption is that GMS isn’t working correctly yet, and your SSO config might be just fine.

Not sure if you’re using the Helm charts to deploy to K8S, but I did. There was a problem there with a liveness probe that makes an HTTP request to an endpoint that requires authentication. Could you check your datahub-gms pod and the settings for the readiness and liveness probes?

Hi <@U042EBB9P1N>,Yes we are using Helm charts to deploy to K8S

Check the probes’ settings and see if GMS will start correctly:attachment

Hi <@U042EBB9P1N> I have added liveneddProbe settings as follows, But still im getting the error

Below is front end error and backend gms same error as mentioned above

Can you verify that both the frontend and gms start correctly? Is there a way to test the connectivity to Azure Entrata (an outbound IP firewall rule somewhere)?

frontend and gms started correctly, I can even login using username and password without any issues. Only SSO not working and by default it shows the below error

Can you please explain bit more about Azure Entrata (an outbound IP firewall rule somewhere)?

With problems like this one, I’d also like to check the basic connectivity. Can you reach from one of your pods? Azure Entrata is the new name for Azure Active Directory (AD).