Indefinite Snowflake auth loop when using browser authentication
See original GitHub issueDescribe the bug
We encounter indefinite auth loop while running dbt with browser auth enabled
Steps To Reproduce
Install dbt 0.17.2 and run anything on Snowflake
Expected behavior
Expected two auth requests in case of MFA and dbt proceeding to transform. (non-MFA logins fail into the loop too)
Screenshots and log output
(dbt-transformations) <wiped out>@<wiped out> dbt-transformations % dbt run --models <wiped out>
Running with dbt=0.17.2
Found 129 models, 135 tests, 3 snapshots, 0 analyses, 140 macros, 0 operations, 1 seed file, 53 sources
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
^C^C^Cctrl-c
System information
Which database are you using dbt with?
- postgres
- redshift
- bigquery
- snowflake
- other (specify: ____________)
The output of dbt --version
:
installed version: 0.17.2
latest version: 0.17.2
Up to date!
Plugins:
- bigquery: 0.17.2
- snowflake: 0.17.2
- redshift: 0.17.2
- postgres: 0.17.2
The operating system you’re using: MacOS 10.15.5 (19F101)
The output of python --version
:
Python 3.7.7
Additional context
reverting dbt to 0.17.1 fixed the issue
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:24 (11 by maintainers)
Top Results From Across the Web
Indefinite Snowflake auth loop when using browser ... - GitHub
The issue here is an infinite loop of externalbrowser authentication, whether the user has MFA turned on or not. How many threads are...
Read more >Managing/Using Federated Authentication
This authentication method is useful when you are using SSO with a client that doesn't have access to a web browser (e.g. connecting...
Read more >Snowflake Snowpark for Python - Anaconda repo
Package Latest Version linux‑64 linux‑aarch64 osx‑64 osx‑arm64 win‑64
_libgcc_mutex 0.1 X X
_low_priority 1.0 X X X
_mutex_mxnet 0.0.50 X X
Read more >Snowflake Python connection using externalbrowser ...
On my machine running snowflake.connector.connect displays the following message, but doesn't open any browser windows to do the authentication: ...
Read more >API Reference - nextcord
AbstractEventLoop to use for asynchronous operations. ... guild ( Snowflake ) – The guild to pre-select in the authorization screen, if available.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I am using the latest version of all three. But it might be still related to the connector and has nothing to do with dbt. See https://github.com/snowflakedb/snowflake-connector-python/issues/349 WDYT Jeremy? 😃
@beckjake we have this issue as well (appeared when upgrading from 0.17.2 to 0.18.0). We’re running okta, snowflake and a variety of pc and mac configs.
We first changed
alter account set allow_id_token = true
, but that did not help.pip install keyring
, however, seems to fix the issue!