Skip to content

SNOW-2872400 Add MFA authentication support to Python wrapper#520

Draft
sfc-gh-turbaszek wants to merge 5 commits intoSNOW-2872400-user-password-mfafrom
SNOW-2872400-user-password-mfa-python
Draft

SNOW-2872400 Add MFA authentication support to Python wrapper#520
sfc-gh-turbaszek wants to merge 5 commits intoSNOW-2872400-user-password-mfafrom
SNOW-2872400-user-password-mfa-python

Conversation

@sfc-gh-turbaszek
Copy link
Contributor

  • 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

sfc-gh-mhofman and others added 5 commits March 13, 2026 20:25
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>
@sfc-gh-mhofman sfc-gh-mhofman force-pushed the SNOW-2872400-user-password-mfa branch 4 times, most recently from 01e4103 to c27168a Compare March 19, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants