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

chore: Add param support for client_request_mfa_token #40394

Merged
merged 12 commits into from
Jun 25, 2024
Merged

Conversation

vanducng
Copy link
Contributor

@vanducng vanducng commented Jun 24, 2024

This PR adds support for an additional parameter named client_request_mfa_token in the extra_conn for Snowflake connections. This enables MFA caching along with two other setup steps:

  • authenticator: username_password_mfa
  • ALLOW_CLIENT_MFA_CACHING is set to TRUE

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:snowflake Issues related to Snowflake provider labels Jun 24, 2024
@potiuk
Copy link
Member

potiuk commented Jun 24, 2024

Could you please fix the tests ?

@vanducng vanducng changed the title chore: Add param support for client_reqquest_mfa_token chore: Add param support for client_request_mfa_token Jun 25, 2024
@vanducng
Copy link
Contributor Author

Hi @potiuk,
All tests are fixed. Can you please help to review again?

@potiuk potiuk merged commit c310159 into apache:main Jun 25, 2024
51 checks passed
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
* chore: Add param support for client_reqquest_mfa_token

* chore: Update test

* chore: Fix test param beat extra

* chore: Update get_params for client_request_mfa_token

* chore: Update client_request_mfa_token to be added if it is set to be True

* chore: Add client_request_mfa_token back to the test

* chore: Update the test as boolean for cient_request_mfa_token

* chore: Cleanup

* chore: Exclude client request mfa token as part of uri

* style: Lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:snowflake Issues related to Snowflake provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants