Skip to content
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

Stop using invalid password authenticator #61

Merged
merged 6 commits into from
Jun 11, 2024

Conversation

dlouseiro
Copy link
Member

@dlouseiro dlouseiro commented Jun 11, 2024

The purpose of this PR is to fix a bug in the authentication behaviour, introduced in this PR.

While the feature referenced above worked successfully for cases when the authenticator=externalbrowser it was not working in cases where an authentication with user and password was intended, as the value password is invalid for the authenticator parameter of snowflake-connector-python.

As the authentication with user/password is the default authentication behaviour of the snowflake connector, the implementation was changed for DatabaseConfiguration.authenticator to accept either externalbrowser or default to the DEFAULT_AUTHENTICATOR from snowflake-connector, the latter triggering a successful authentication using user and password

@dlouseiro dlouseiro requested review from michael-the1 and a team June 11, 2024 10:14
@dlouseiro dlouseiro self-assigned this Jun 11, 2024
@dlouseiro dlouseiro added the bug Something isn't working label Jun 11, 2024
Copy link

@anastasiaromane anastasiaromane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

@dlouseiro dlouseiro merged commit 1468937 into master Jun 11, 2024
6 checks passed
@dlouseiro dlouseiro deleted the dlouseiro/stop-using-invalid-password-authenticator branch June 11, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

3 participants