Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: prevent refreshing tokens that don't exist #4661

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

Merged
merged 2 commits into from
Oct 20, 2022
Merged

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Oct 20, 2022

  • When logging in with Google OIDC refresh tokens are not provided unless explicitly asked for. This PR updates the logic to avoid attempting to refresh the token if a refresh token does not exist.

    A session should only be dependent on a valid Coder API key, the state of its OAuth token (beyond initial authentication) should be irrelevant.

fixes #4059

sreya added 2 commits October 20, 2022 01:16
- When logging in with Google OIDC refresh tokens are not
  provided unless explicitly asked for. This PR updates
  the logic to avoid attempting to refresh the token if
  a refresh token does not exist.

  A session should only be dependent on a valid Coder API
  key, the state of its OAuth token (beyond initial authentication)
  should be irrelevant.
@sreya sreya requested a review from kylecarbs October 20, 2022 02:21
@sreya sreya merged commit d0b1c36 into main Oct 20, 2022
@sreya sreya deleted the jon/refreshtoken branch October 20, 2022 05:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate OAuth Flow
2 participants