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

fix(snowflake): invalid token does not prevent to retrieve a new one #500

Merged
merged 4 commits into from
Oct 18, 2021

Conversation

davinov
Copy link
Member

@davinov davinov commented Oct 18, 2021

Since #497, some claims in the token are validated (even if there is 'verify_signature': False), which could prevent new token to be fetched. There was then no way to connect, once the validity has been broken once.

Copy link
Contributor

@raphaelvignes raphaelvignes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint the code and then it's GTM :)

access_token = jwt.decode(
self.access_token,
options={
'verify_signature': False, # this should be enough according to docs, but doesn't seem like it is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this has changed :/

@davinov davinov force-pushed the fix-snowflake-token-validity branch from 0b866c2 to 3650f79 Compare October 18, 2021 14:21
@davinov davinov merged commit cebff61 into master Oct 18, 2021
@davinov davinov deleted the fix-snowflake-token-validity branch October 18, 2021 14:25
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants