-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-880] User stuck in Snowflake auth loop while using browserauth #208
Comments
Discussed with @crystalro0 @nathaniel-may offline. This is especially tricky to debug in the general case, because it's completely a function of Let's swing back to this one if/after we get a chance to talk to the user directly. We can list out the debugging steps we attempted, and whether they yielded any results. I'm sure this isn't the last person who will run into this issue! |
For what it's worth @jtcohen6, I'm experiencing the exact same issue with dbt 1.20, SSO to Azure AD to Snowflake, python 3.9.13. This only started after switching from a Windows-laptop to a new mac. I'll happily assist with any information. The login-request (every pop-up browser-window claims the identity was confirmed: Your identity was confirmed and propagated to Snowflake dbt. You can close this window now and go back where you started from. |
I'm also having this issue.
I've inspected
Then Thread-5 goes into another cycle and gets a new connection instead of reusing:
Is there something I could compare on my old Macbook to see what is going on? |
UPDATE: Upgrading from Python 3.8.9 to 3.9.13 fixed this for me. |
Update from me as well: Installing keyring fixed this for me. |
It seems the homebrew install doesn’t bring over some of the dependencies, I uninstalled and instead installed with pip and now it’s working. |
I'm experiencing the SSO auth hanging and I didn't install anything with brew, all through pip (suggesting it is an issue with the package? or its interaction with other tools?). My environment: |
@dsillman2000, I am not sure about windows but I believe they suggested using Python 3.9 and not 10. I would try that. Also I would try a different browser to see if it fixes the issue. Best of luck. |
Update from me: Installing |
Same update as @miguelbirdie . uninstall dbt via brew, then pip install, all good. Thank you so much @miguelbirdie |
I ran into this issue recently and thought it might be worthwhile to share my findings. My Python environment
The problem ended up being masked by this try-except. The error log for me was the following:
I was able to replicate it using the same Python interpreter that
One way to fix this is to ensure the right Python interpreter has access to this secret, or grant broad access. I'll leave this security considerations blurb here. On MacOS:
|
I will go ahead and close this one, this looks settled. |
Posting this for new folks stumbling on the same issue for which the above didn't fix — found a solution fixing it while keeping my Homebrew install ⬇️ SolutionRun the
Get to your Python path (replace if different):
Install or reinstall keyring here - this package ensures that MacOS chain is triggered instead of browser auth
ExplanationWhen using
and stumbled upon this error: At the end it all came down to external dependencies 😅 Still posting the debugging method so people can reproduce for potential other types of error – @Fleid FYI |
Describe the bug
User is trying to run a model in CLI and is getting prompted to authenticate via
externalbrowser
after already being authenticated.Steps To Reproduce
dbt
andkeyring
withbrew
allow_id_token
is set totrue
and MFA is not enabled but they do have SSO.dbt run -s sample_model --full-refresh
)Expected behavior
No other authentication prompts once already auth'd, just model run results.
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
The output of
dbt --version
:The operating system you're using:
MacOS
The output of
python --version
:3.9.12
Additional context
Related to dbt-labs/dbt-core#2689
The text was updated successfully, but these errors were encountered: