OAuth U2M AWS Token Failure

Dave_Nithio
Contributor II

I am attempting to generate a manual OAuth token using the instructions for AWS. When attempting to generate the account level authentication code I run into a localhost error:

Dave_Nithio_0-1727366943499.png

I have confirmed that all variables and urls are correct and that I am logged in via:

databricks auth login --host <account-console-url> --account-id <account-id>

I noticed a similar issue in another community thread which documents a similar problem with Azure Databricks. I followed the steps outlined in the solution (including breaking up my script). I noticed though that if I adjust the url to generate the account-level authorization code to the Azure version I get to a Databricks login page:

Dave_Nithio_1-1727367412523.png

I am unclear why I am not getting to the AWS login page following the instructions provided. Any assistance would be appreciated.

Dave_Nithio
Contributor II

After investigating further, the localhost issue was because I was already logged in and did not need to login again. The returned URL contained the authorization code. I was able to authenticate and run account level API requests with the generated bearer code.