Releases: techfromsage/talis-php
Refactor Caching Mechanism
This release is a breaking change where the majority of the $cacheTTL
attributes on the exposed methods have been removed.
Modified methods:
- OAuthClients::getOAuthClient removed third attribute ($cacheTTL)
- OAuthClients::listScopes removed second attribute ($pubCertCacheTTL)
- Users::getUserByGupid removed second attribute ($cacheTTL)
- Users::getUserByGuids removed third attribute ($cacheTTL)
Correct typehint for `Tokens::listScopes`
Correct typehint for Tokens::listScopes
: the typehint should say array
rather than string
, and the method signature should agree.
Fix Public Key Retrieval Cache
When retrieving the certificate used to verify the JWT tokens the cache/etag headers was used to revalidate the cached response. This meant that each request was calling Persona to retrieve the new cache/etag headers.
This change skips the revalidation of the cached response & only used the expiry time set within the cache.
Corrected composer version number
No functional changes, this release simply corrects the version number in the composer.json file and ensures it is consistent with the release tag.
Bump version number
0.1.1 fix version number
Improvement in code quality
Multiple linters have been introduced and which has caused some incompatibilities to occur:
- Moved the follows methods from \Talis\Persona\Client\Tokens to \Talis\Persona\Client\Signing:
- isPresignedUrlValid
- presignUrl
- ValidationResults enum values has been uppercased (InvalidSignature -> INVALID_SIGNATURE)
Fixes to invalid signature
0.0.3 bump version
List token scopes
Method added to provide the ability to list scopes on a JWT token.
Initial Release
0.0.1 Refactored test names