-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugThis issue is a bug.This issue is a bug.
Description
Describe the bug
The TokenProvider::cache method has a serious bug that prevents it from working.
When reading the cache, the code looks for the cache value to be an array containing a key named "token", but when saving to the cache, it directly writes the token to the cache, not an array.
As a result, the cached token is never found and the provider method is invoked every time.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Cached value should be properly returned.
Current Behavior
Cached value is never found.
Reproduction Steps
Create a TokenProvider cache
Possible Solution
Match the set and get behavior with common keys.
Additional Information/Context
No response
SDK version used
3.351.4
Environment details (Version of PHP (php -v)? OS name and version, etc.)
php 8.4, Amazon Linux
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.