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: force token refresh with lagoon login #409

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

shreddedbacon
Copy link
Member

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

This change forces the lagoon login command to refresh the token. Previously this command would only refresh a token if it was invalid, effectively doing nothing.

For users that use many keys, this can lead to problems where the token may be for another user that previously authenticated, but still had a valid token. With a user believing that lagoon login was clearing out the token.

This is addressed in #319, but that pull request has considerable changes that are breaking for users, so this pull request brings a version of that functionality to the current CLI format.

@shreddedbacon shreddedbacon merged commit 7829bdf into main Dec 6, 2024
7 checks passed
@shreddedbacon shreddedbacon deleted the login-reset-token branch December 6, 2024 04:33
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