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 flowctl auth ... not properly exchanging access token for refresh token #1705

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

jshearer
Copy link
Contributor

@jshearer jshearer commented Oct 16, 2024

Description:

This bug was introduced in #1665. I tested the flowctl auth flow as part of that PR, but apparently didn't exercise the branch used when we have an access token, but no refresh token (i.e authenticating for the first time). This fixes that branch by always ensuring the client used to create the refresh token is authenticated, and also makes sure to generate and store a refresh token on the Config as part of the auth subcommand.

Also tested auth token, which was similarly broken and is similarly fixed.

Fixes #1703


This change is Reviewable

@jshearer jshearer requested a review from psFried October 16, 2024 14:52
@jshearer jshearer changed the title flowctl: Fix auth login not properly exchanging access token for refresh token flowctl: Fix auth ... not properly exchanging access token for refresh token Oct 16, 2024
@jshearer jshearer changed the title flowctl: Fix auth ... not properly exchanging access token for refresh token Fix flowctl auth ... not properly exchanging access token for refresh token Oct 16, 2024
@jshearer jshearer added bug Something isn't working flowctl Issues related to the user facing CLI labels Oct 16, 2024
@jshearer jshearer requested a review from a team October 16, 2024 16:55
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

@jshearer jshearer merged commit 69765a6 into master Oct 16, 2024
4 checks passed
github-actions bot pushed a commit to estuary/homebrew-flowctl that referenced this pull request Oct 16, 2024
Fix for `flowctl auth ...` family of commands not properly writing newly minted token estuary/flow#1705

**Full Changelog**: estuary/flow@v0.5.6...v0.5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flowctl Issues related to the user facing CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flowctl: auth not working
2 participants