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(sso): Ensure that only one authentication cycle is started. #1355

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

kpfleming
Copy link
Contributor

The 'sso' command, when run against a profile with an expired refresh token, would cause two authentication cycles to be started: one by the CLI core before the 'sso' command itself was executed, and then another by the 'sso' command. The second cycle would fail and result in an 'extra' browser tab/window with an error message of "ERROR: no authorization code returned". While the authentication was successful and the new refresh/access/session tokens were stored, this confused the user of the CLI.

The 'sso' command, when run against a profile with an expired refresh
token, would cause two authentication cycles to be started: one by the
CLI core before the 'sso' command itself was executed, and then
another by the 'sso' command. The second cycle would fail and result
in an 'extra' browser tab/window with an error message of "ERROR: no
authorization code returned". While the authentication was successful
and the new refresh/access/session tokens were stored, this confused
the user of the CLI.
@kpfleming kpfleming removed the request for review from phamann December 4, 2024 16:28
@kpfleming kpfleming merged commit 26ae795 into fastly:main Dec 4, 2024
6 checks passed
@kpfleming kpfleming deleted the cdtool-983 branch December 4, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants