Skip to main content

OAuth 2.0 for Databricks

Configure Alteryx Analytics Cloud (AAC) to integrate with your Databricks workspace using OAuth 2.0 to authenticate.

Prerequisites

Create OAuth 2.0 Microsoft Azure Client App

In the Azure portal, you must create a client app.

  1. Sign in to your Microsoft Azure portal.

  2. Go to App registrations and then select New registration.

  3. Configure the redirect URLs as...

    1. https://{aac_environment}/workspace/azure1/sso/azureCallback

    2. https://{aac_environment}/oauth2/callback

    3. Where {aac_environment} is your base AAC URL. For example, us1.alteryxcloud.com.

  4. Go to Add a certificate or secret and then create a new secret.

  5. Copy the client id, secret, and tenant id. You will use these later.

Create OAuth 2.0 Client for Databricks in AAC

After you create the Azure client app, you must create an OAuth 2.0 client in AAC. The AAC client app integrates with the OAuth 2.0 Client app that you created in the Azure portal.

  1. Sign in to AAC as a Workspace Admin.

  2. Select the Profile menu > Workspace Admin > OAuth 2.0 Clients.

  3. On the OAuth 2.0 Clients page, select Register OAuth 2.0 client.

  4. Configure these fields for the new client…

    1. From the Type dropdown, select databricks.

    2. Under Name, enter a descriptive name for the client.

    3. Enter the Client ID value you created during the Azure client app setup.

    4. Enter the Client Secret value you created during the Azure client app setup.

    5. Under Authorization URL, enter https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/authorize. Replace {tenantID} with your Azure tenant ID.

    6. Under Token URL, enter https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token. Replace {tenantID} with your Azure tenant ID.

    7. Under Scopes, enter 2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default offline_access.

    8. Under Access Token Expires In, enter 3599999.

    9. Under Refresh Token Expires In, enter 7775999999.

  5. Select Create.

For more information, go to Create OAuth2 Client.