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

CLI-1143: Don't use invalidated access keys #426

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

danepowell
Copy link
Collaborator

Only a single access key can be cached today. If the client changes API tokens, endpoints (prod vs test), or org ID, the cached token will still be used until it expires.

The fix is to incorporate user-modifiable aspects of the token (client id, org id) into the cache key. This should also handle the use case of switching endpoints, since credentials aren't generally shared between environments.

@danepowell danepowell added the bug label Oct 20, 2023
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/Connector/Connector.php 97.67% <100.00%> (+0.17%) ⬆️

📢 Thoughts on this report? Let us know!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant