cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Register more redirect URIs for OAuth U2M

BenDataBricks
New Contributor II

I am following this guide on allowing OAuth U2M for Azure Databricks.

When I get to Step 2, I make a request to account.azuredatabricks.net and specify a redirect URI to receive a code.

The redirect URI in the example is localhost:8020. If I change this to anything else (e.g. localhost:8021, localhost:8020/myfile.html) it fails with this error:

 

 

{"error_description":"redirect_uri 'http:\/\/localhost:8021' not registered for OAuth application 'databricks-cli'","error":"invalid_request"}

 

 

 I found this page about allowing other redirect URIs but it uses username and password which I do not have, because everything I do is through SSO.

Is there a way for me to add additional redirect URIs through the databricks portal?

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @BenDataBricks

 

To configure OAuth U2M authentication with Azure Databricks, follow these steps:

  1. Environment Variables:

  2. Configuration Profile:

    • Create or identify an Azure Databricks configuration profile in your .databrickscfg file.
    • Set the following values in your .databrickscfg file:
      • For account-level operations (using the Azure Databricks account console URL):
        [my_profile]
        DATABRICKS_HOST = https://accounts.azuredatabricks.net
        
      • For workspace-level operations (using the per-workspace URL):
        [my_profile]
        DATABRICKS_HOST = https://adb-1234567890123456.7.azuredatabricks.net
        
  3. Use the Profile:

    • Integrate the profile within your code based on the participating tool or SDK.
    • Depending on the Azure Databricks operations your code calls, you may not necessarily need to be an administrator for the Azure Databricks account.

Remember that this setup allows you to authenticate without exposing credentials, even if youโ€™re usi...1. You can add additional redirect URIs through the Azure Databricks portal by configuring your OAuth application settings. However, please note that the specific steps may vary based on your organizationโ€™s policies and Azure AD configuration. If you encounter any issues, consider reaching out to your Azure AD administrator for further assistance.

Feel free to explore the Azure Databricks documentation for more details on OAuth U2M authentication...14.

 
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!