You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
SSO auth is silently failing after token expiration. This is due to the exception handling assuming that none is the only failure signal so when we go to return the access token (i.e. return result_json["access_token"]) it fails as the "access_token" isn't in the result_json.
github-actionsbot
changed the title
[Bug] Snowflake SSO Token expiration not surfaced in logs
[ADAP-1049] [Bug] Snowflake SSO Token expiration not surfaced in logs
Nov 28, 2023
Is this a new bug in dbt-snowflake?
Current Behavior
SSO auth is silently failing after token expiration. This is due to the exception handling assuming that
none
is the only failure signal so when we go to return the access token (i.e.return result_json["access_token"]
) it fails as the "access_token" isn't in the result_json.Section of code:
dbt-snowflake/dbt/adapters/snowflake/connections.py
Line 237 in 62f7594
Expected Behavior
If the access_token is not in result_json we return an auth failure exception with the exception message from snowflake.
Steps To Reproduce
See: https://dbtlabs.atlassian.net/browse/CC-860
On Version 1.5.9 ->
Token expired for Snowflake SSO ->
Run ‘dbt run’ command in the IDE
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: