SNOW-2872400 Add MFA authentication support to Python wrapper#520
Draft
sfc-gh-turbaszek wants to merge 5 commits intoSNOW-2872400-user-password-mfafrom
Draft
SNOW-2872400 Add MFA authentication support to Python wrapper#520sfc-gh-turbaszek wants to merge 5 commits intoSNOW-2872400-user-password-mfafrom
sfc-gh-turbaszek wants to merge 5 commits intoSNOW-2872400-user-password-mfafrom
Conversation
Contributor
sfc-gh-turbaszek
commented
Mar 16, 2026
- Document MFA connection parameters (passcode, passcode_in_password, client_store_temporary_credential, ext_authn_duo_method) in Connection docstring
- Add _rewrite_mfa_params() to translate passcode_in_password to the camelCase key expected by the Rust core (passcodeInPassword)
- Mark passcode as sensitive so it is redacted in stored kwargs
- Add MFA env vars to test config (SNOWFLAKE_TEST_MFA_USER/PASSWORD/PASSCODE)
- Add E2E tests covering passcode, passcode_in_password, token caching, DUO push, and error cases
Made-with: Cursor # Conflicts: # sf_core/src/config/rest_parameters.rs # sf_core/src/config/settings.rs # sf_core/src/rest/snowflake/mod.rs # tests/definitions/shared/authentication/user_password_mfa.feature # Conflicts: # sf_core/src/auth.rs
- Document MFA connection parameters (passcode, passcode_in_password, client_store_temporary_credential, ext_authn_duo_method) in Connection docstring - Add _rewrite_mfa_params() to translate passcode_in_password to the camelCase key expected by the Rust core (passcodeInPassword) - Mark passcode as sensitive so it is redacted in stored kwargs - Add MFA env vars to test config (SNOWFLAKE_TEST_MFA_USER/PASSWORD/PASSCODE) - Add E2E tests covering passcode, passcode_in_password, token caching, DUO push, and error cases Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
01e4103 to
c27168a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.