From 249be954bca69e479547b253ddd88191cbd07c15 Mon Sep 17 00:00:00 2001 From: Snehil Kishore Date: Sun, 6 Apr 2025 18:31:10 +0530 Subject: [PATCH 1/4] Release 7.16.0 --- CHANGELOG.md | 12 ++++++++++++ README.md | 27 ++++++++++++++------------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56ad8c7..e7d5d12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## [7.16.0](https://github.com/auth0/laravel-auth0/tree/7.16.0) (2025-04-06) + +[Full Changelog](https://github.com/auth0/laravel-auth0/compare/7.15.0...7.16.0) + +**Added** + +- Laravel 12 Support [\#470](https://github.com/auth0/laravel-auth0/pull/470) ([lee-to](https://github.com/lee-to)) + +**Fixed** + +- refactor: fix failing tests [\#471](https://github.com/auth0/laravel-auth0/pull/471) ([noevidenz](https://github.com/noevidenz)) + ## [7.15.0](https://github.com/auth0/laravel-auth0/tree/7.15.0) (2024-06-03) [Full Changelog](https://github.com/auth0/laravel-auth0/compare/7.14.0...7.15.0) diff --git a/README.md b/README.md index c25f3bc..a39eb30 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,8 @@ The next major release of Laravel is forecasted for Q1 2025. We anticipate suppo | Laravel | SDK | PHP | Supported Until | | ---------------------------------------------- | ----- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------ | -| [11.x](https://laravel.com/docs/11.x/releases) | 7.13+ | [8.3](https://www.php.net/releases/8.3/en.php) | Approx. [March 2026](https://laravel.com/docs/11.x/releases#support-policy) (EOL for Laravel 11) | -| | | [8.2](https://www.php.net/releases/8.2/en.php) | Approx. [Dec 2025](https://www.php.net/supported-versions.php) (EOL for PHP 8.2) | +| [12.x](https://laravel.com/docs/11.x/releases) | 7.15+ | [8.4](https://www.php.net/releases/8.4/en.php) | Approx. [Feb 2027](https://laravel.com/docs/12.x/releases#support-policy) (EOL for Laravel 12) | +| | | [8.2](https://www.php.net/releases/8.3/en.php) | Approx. [Dec 2025](https://www.php.net/supported-versions.php) (EOL for PHP 8.3) | We strive to support all actively maintained Laravel releases, prioritizing support for the latest major version with our SDK. If a new Laravel major introduces breaking changes, we may have to end support for past Laravel versions earlier than planned. @@ -49,22 +49,23 @@ The following releases are no longer being updated with new features by Auth0, b | Laravel | SDK | PHP | Security Fixes Until | | ---------------------------------------------- | ---------- | ---------------------------------------------- | -------------------------------------------------------------------------------------- | -| [10.x](https://laravel.com/docs/10.x/releases) | 7.5 - 7.12 | [8.3](https://www.php.net/releases/8.3/en.php) | [Feb 2025](https://laravel.com/docs/10.x/releases#support-policy) (EOL for Laravel 10) | -| | | [8.2](https://www.php.net/releases/8.2/en.php) | [Feb 2025](https://laravel.com/docs/10.x/releases#support-policy) (EOL for Laravel 10) | -| | | [8.1](https://www.php.net/releases/8.2/en.php) | [Nov 2024](https://www.php.net/supported-versions.php) (EOL for PHP 8.1) | +| [11.x](https://laravel.com/docs/10.x/releases) | 7.13+ | [8.4](https://www.php.net/releases/8.4/en.php) | [March 2026](https://laravel.com/docs/11.x/releases#support-policy) (EOL for Laravel 11) | +| | | [8.3](https://www.php.net/releases/8.3/en.php) | [March 2026](https://laravel.com/docs/11.x/releases#support-policy) (EOL for Laravel 11) | +| | | [8.2](https://www.php.net/releases/8.2/en.php) | [Dec 2026](https://www.php.net/supported-versions.php) (EOL for PHP 8.2) | ### Unsupported Releases The following releases are unsupported by Auth0. While they may be suitable for some legacy applications, your mileage may vary. We recommend upgrading to a supported version as soon as possible. -| Laravel | SDK | -| -------------------------------------------- | ---------- | -| [9.x](https://laravel.com/docs/9.x/releases) | 7.0 - 7.12 | -| [8.x](https://laravel.com/docs/8.x/releases) | 7.0 - 7.4 | -| [7.x](https://laravel.com/docs/7.x/releases) | 5.4 - 6.5 | -| [6.x](https://laravel.com/docs/6.x/releases) | 5.3 - 6.5 | -| [5.x](https://laravel.com/docs/5.x/releases) | 2.0 - 6.1 | -| [4.x](https://laravel.com/docs/4.x/releases) | 1.x | +| Laravel | SDK | +| -------------------------------------------- | ---------- | +| [10.x](https://laravel.com/docs/10.x/releases)| 7.5 - 7.12 | +| [9.x](https://laravel.com/docs/9.x/releases) | 7.0 - 7.12 | +| [8.x](https://laravel.com/docs/8.x/releases) | 7.0 - 7.4 | +| [7.x](https://laravel.com/docs/7.x/releases) | 5.4 - 6.5 | +| [6.x](https://laravel.com/docs/6.x/releases) | 5.3 - 6.5 | +| [5.x](https://laravel.com/docs/5.x/releases) | 2.0 - 6.1 | +| [4.x](https://laravel.com/docs/4.x/releases) | 1.x | ## Getting Started From fd5821609dde33a33b083bcd88a7b5f873d9bfb3 Mon Sep 17 00:00:00 2001 From: Snehil Kishore Date: Sun, 6 Apr 2025 19:06:21 +0530 Subject: [PATCH 2/4] refactor : Fix PHP CS Fixer --- .../CallbackControllerAbstract.php | 2 +- src/Controllers/LoginControllerAbstract.php | 2 +- src/Entities/InstanceEntityAbstract.php | 2 +- src/Events.php | 20 ++++++++-------- src/EventsContract.php | 23 ++++++++++--------- 5 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/Controllers/CallbackControllerAbstract.php b/src/Controllers/CallbackControllerAbstract.php index 82a4340..7ab3868 100644 --- a/src/Controllers/CallbackControllerAbstract.php +++ b/src/Controllers/CallbackControllerAbstract.php @@ -5,12 +5,12 @@ namespace Auth0\Laravel\Controllers; use Auth0\Laravel\Auth\Guard; +use Auth0\Laravel\{Configuration, Events}; use Auth0\Laravel\Entities\CredentialEntityContract; use Auth0\Laravel\Events\{AuthenticationFailed, AuthenticationSucceeded}; use Auth0\Laravel\Exceptions\ControllerException; use Auth0\Laravel\Exceptions\Controllers\CallbackControllerException; use Auth0\Laravel\Guards\GuardAbstract; -use Auth0\Laravel\{Configuration, Events}; use Illuminate\Auth\Events\{Attempting, Authenticated, Failed, Validated}; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Http\Request; diff --git a/src/Controllers/LoginControllerAbstract.php b/src/Controllers/LoginControllerAbstract.php index 83343e2..6e4ff38 100644 --- a/src/Controllers/LoginControllerAbstract.php +++ b/src/Controllers/LoginControllerAbstract.php @@ -5,11 +5,11 @@ namespace Auth0\Laravel\Controllers; use Auth0\Laravel\Auth\Guard; +use Auth0\Laravel\{Configuration, Events}; use Auth0\Laravel\Entities\CredentialEntityContract; use Auth0\Laravel\Events\LoginAttempting; use Auth0\Laravel\Exceptions\ControllerException; use Auth0\Laravel\Guards\GuardAbstract; -use Auth0\Laravel\{Configuration, Events}; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Entities/InstanceEntityAbstract.php b/src/Entities/InstanceEntityAbstract.php index 36d2929..2e23024 100644 --- a/src/Entities/InstanceEntityAbstract.php +++ b/src/Entities/InstanceEntityAbstract.php @@ -5,8 +5,8 @@ namespace Auth0\Laravel\Entities; use Auth0\Laravel\Bridges\{CacheBridge, SessionBridge}; -use Auth0\Laravel\Events\Configuration\{BuildingConfigurationEvent, BuiltConfigurationEvent}; use Auth0\Laravel\{Configuration, Events, Service}; +use Auth0\Laravel\Events\Configuration\{BuildingConfigurationEvent, BuiltConfigurationEvent}; use Auth0\SDK\Auth0; use Auth0\SDK\Configuration\SdkConfiguration; use Auth0\SDK\Contract\API\ManagementInterface; diff --git a/src/Events.php b/src/Events.php index e558c5d..04003c2 100644 --- a/src/Events.php +++ b/src/Events.php @@ -4,16 +4,6 @@ namespace Auth0\Laravel; -use Auth0\Laravel\Events\Configuration\{ - BuildingConfigurationEvent, - BuiltConfigurationEvent, -}; - -use Auth0\Laravel\Events\Middleware\{ - StatefulMiddlewareRequest, - StatelessMiddlewareRequest, -}; - use Auth0\Laravel\Events\{ AuthenticationFailed, AuthenticationSucceeded, @@ -27,6 +17,16 @@ TokenVerificationSucceeded, }; +use Auth0\Laravel\Events\Configuration\{ + BuildingConfigurationEvent, + BuiltConfigurationEvent, +}; + +use Auth0\Laravel\Events\Middleware\{ + StatefulMiddlewareRequest, + StatelessMiddlewareRequest, +}; + /** * @api * diff --git a/src/EventsContract.php b/src/EventsContract.php index 8cc0c1d..1cd6dc1 100644 --- a/src/EventsContract.php +++ b/src/EventsContract.php @@ -4,6 +4,18 @@ namespace Auth0\Laravel; +use Auth0\Laravel\Events\{ + AuthenticationFailed, + AuthenticationSucceeded, + LoginAttempting, + TokenExpired, + TokenRefreshFailed, + TokenRefreshSucceeded, + TokenVerificationAttempting, + TokenVerificationFailed, + TokenVerificationSucceeded, +}; + use Auth0\Laravel\Events\Configuration\{ BuildingConfigurationEvent, BuiltConfigurationEvent, @@ -16,17 +28,6 @@ StatelessMiddlewareRequest, }; -use Auth0\Laravel\Events\{ - AuthenticationFailed, - AuthenticationSucceeded, - LoginAttempting, - TokenExpired, - TokenRefreshFailed, - TokenRefreshSucceeded, - TokenVerificationAttempting, - TokenVerificationFailed, - TokenVerificationSucceeded, -}; /** * @api From e78f61bee99626871a7a5c3a9e918fa8b642dcd7 Mon Sep 17 00:00:00 2001 From: Snehil Kishore Date: Sun, 6 Apr 2025 19:12:41 +0530 Subject: [PATCH 3/4] refactor: Fix PHP CS Fixer --- src/EventsContract.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/EventsContract.php b/src/EventsContract.php index 1cd6dc1..1e64d22 100644 --- a/src/EventsContract.php +++ b/src/EventsContract.php @@ -28,7 +28,6 @@ StatelessMiddlewareRequest, }; - /** * @api */ From bec4d94452a52d16293a9b1cc82b31ac2fff996a Mon Sep 17 00:00:00 2001 From: Snehil Kishore Date: Mon, 7 Apr 2025 15:50:07 +0530 Subject: [PATCH 4/4] Version File Changes --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index 368fd8f..971ecb2 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -7.15.0 +7.16.0