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

SNOW-1774080: Snowflake connector Oauth token refresh (Okta) #2095

Open
shokhan-nulogy opened this issue Oct 30, 2024 · 1 comment
Open

SNOW-1774080: Snowflake connector Oauth token refresh (Okta) #2095

shokhan-nulogy opened this issue Oct 30, 2024 · 1 comment
Assignees
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team

Comments

@shokhan-nulogy
Copy link

What is the current behavior?

Currently, when using Okta to create a Oauth access token to connect to snowflake connector, it will eventually timeout when the access token expires, it then gives an error status.

What is the desired behavior?

Allow for renewal of connection through requesting new access token using refresh token.

How would this improve snowflake-connector-python?

This would allow the expiration and renewal logic to be handled by the snowflake connector rather than having to implement it on our own.

References and other background

No response

@github-actions github-actions bot changed the title Snowflake connector Oauth token refresh (Okta) SNOW-1774080: Snowflake connector Oauth token refresh (Okta) Oct 30, 2024
@sfc-gh-sghosh
Copy link

Hello @shokhan-nulogy ,

Thanks for raising the issue. At present, the Snowflake connector does not have a provision for renewing a connection by requesting a new access token using a refresh token. This is due to a security concern.

So, you can handle the OAuth token refresh process outside the Snowflake connector, then re-establish the connection with the new access token.

Regards,
Sujan

@sfc-gh-sghosh sfc-gh-sghosh added status-triage_done Initial triage done, will be further handled by the driver team and removed needs triage labels Nov 7, 2024
@sfc-gh-sghosh sfc-gh-sghosh self-assigned this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

2 participants