-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Adding OAuth support for SnowflakeHook #47191
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
Conversation
2d0db9d to
fe00766
Compare
|
Rebased. This one looks good to merge if the questions are resolved @sunank200 ? |
|
Needs to be rebased again. Can you please rebase? @Sharashchandra |
ef2205e to
cad0203
Compare
|
@potiuk rebased! |
cad0203 to
60d1f13
Compare
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
|
Congrats @Sharashchandra! 🎉 |
|
@Sharashchandra cant we merge |
This PR enhances the SnowflakeHook in the Airflow repo by completing the OAuth authentication flow. It adds logic to fetch the access token using the refresh_token, client_id, and client_secret, which are already managed in the extras of the Snowflake connection object.
Changes & Fixes:
Implements logic to exchange the refresh_token for a new access token before establishing a connection.
Resolves an issue where using refresh_token, client_id, and client_secret directly with SnowflakeHook results in the error:
main/newsfragments).
Duplicate of #47073, Reopening because I messed up the updates