kamermans/guzzle-oauth2-subscriber
OAuth 2.0 Client for Guzzle 4, 5, 6 and 7 with PHP 5.4 - PHP 8.0 - no more dependency hell!
📋 What's Changed
- Fix nullable deprecations for PHP 8.4+ by @KorDum in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/62
✨ New Contributors
- @KorDum made their first contribution in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/62
- Full Changelog: https://github.com/kamermans/guzzle-oauth2-subscriber/compare/v1.1.0...v1.1.1
📦 PHP Minimum Version
- This release drops support for PHP 5 and now requires PHP 7.1 or newer.
📋 What's Changed
- Static return types, min ver PHP 7.1 by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/60
- The restoreToken function return type can be null by @GabGr25 in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/57
✨ New Contributors
- @GabGr25 made their first contribution in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/57
- Full Changelog: https://github.com/kamermans/guzzle-oauth2-subscriber/compare/v1.0.13...v1.1.0
📋 What's Changed
- Move Guzzle from required to suggested by @Uebix in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/38
- Test Maintenance by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/46
- fix: no need to delete the token, just overwrite it by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/48
- Create a client credentials JSON signer by @edipoReboucas in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/40
- Update Tests to use PHP 8 by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/49
- feat: matrix caching by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/50
- fix: remove getConfig() call in Guzzle 6+ by @kamermans in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/47
- method getRawData() of grant types not interface compliant and can lead to TypeError by @PawelSuwinski in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/51
- + 1 more
✨ New Contributors
- @Uebix made their first contribution in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/38
- @PawelSuwinski made their first contribution in https://github.com/kamermans/guzzle-oauth2-subscriber/pull/51
- Full Changelog: https://github.com/kamermans/guzzle-oauth2-subscriber/compare/v1.0.12...v1.0.13
📋 Changes
- PHPUnit compatibility fixes
- Docker test runner updates
- Better return type hinting
📋 Changes
- Exclude test files / shims from package to fix errors in PHPStorm
Added support for `GuzzleHttp\Psr7 v1.7.0+`, which deprecated (and eventually removed) the `stream_for` helper.
Added support for `audience` parameter, thanks @fabiang!
📋 Changes
- Added the ability to specify a custom token factory (thanks @thiakil!)
📋 Changes
- Added support for Guzzle 7 (thanks @lasselehtinen!)
- Improved testing matrix (combinations of Guzzle and PHP versions)
📋 Changes
- Added `ClosureTokenPersistence` for wrapping other cache providers.
- Added `Laravel5CacheTokenPersistence` for using the Laravel 5 cache (thanks @threesquared!).
- Added License file to make the license more clear
📋 Changes
- Support for [PSR-16: Common Interface for Caching Libraries](https://www.php-fig.org/psr/psr-16/) cache adapters.
- New `NullGrantType` for manually specifying an access token without a method for retrieving a new one (see the README for more details).
- The ability to get the `RawToken` object so you can directly access the OAuth access token and refresh token (if available).
- Fix for incorrect signer interfaces in `OAuth2Handler` constructor.
- Exclusive lock on token write for thread safety.
This release adds support for (PSR-16: Common Interface for Caching Libraries)[https://www.php-fig.org/psr/psr-16/] cache adapters, and includes a new `NullGrantType` for manually specifying an access token without a method for retrieving a new one (see the README for more details). This is beta because I may be adding one more change to the final release of 1.0.5.
📦 Improvement: Better handling of corrupted tokens
- When restoring an existing token from persistence, the token may be
- in an unreadable format, or otherwise corrupt. This update ensures
- the corrupt file is discarded and a new access token is obtained.
Bugfix: Fixed error that prevented Refresh Tokens from being used properly.
Bugfix: Fixed signing bug for some Guzzle versions in the `PasswordCredentials` and `RefreshToken` grant types (thanks @radmar).
Bugfix: if an access token is granted, then revoked by the OAuth server, this update causes the client to delete the old access token and request a new one without dropping any requests.
Testing is complete on all Guzzle versions and PHP versions and there are no outstanding issues.
Fixed bug in the file persistence system
Added the Guzzle requirement to `composer.json` and released so packagist/composer can handle dependency management properly.
Initial commit after splitting back off from the Guzzle project. My aim is to keep this one, single package working for Guzzle 4, 5 and 6+
