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?

AFox
Contributor

You have to register a new OAuth application.

See: Enable or disable partner OAuth applications 

and API: Create Custom OAuth App Integration