You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Significant performance improvements by eliminating redundant user queries.
8
18
- Compatibility support for [Laravel Telescope](https://laravel.com/docs/telescope). See [docs/Telescope.md](./docs/Telescope.md) for more information.
9
19
- A refactored Events API has been introduced. See [docs/Events.md](./docs/Events.md) for more information.
10
20
-`AUTH0_SESSION_STORAGE` and `AUTH0_TRANSIENT_STORAGE` now support a `cookie` value to enable the native Auth0-PHP SDK cookie session handler. See [docs/Cookies.md](./docs/Cookies.md) for more information.
11
21
12
-
### Fixed
22
+
**Fixed**
13
23
14
24
- Addressed an issue where, under certain circumstances, the first user authentication attempt after a session invalidation could fail.
15
25
16
-
### Changed
26
+
**Changed**
17
27
18
28
- Session regeneration/invalidation has been refactored.
19
29
- Discarded sessions are now deleted when they are invalidated by the SDK, rather than wait for Laravel to garbage collect.
20
30
- Session storage has been refactored. Session data is now stored as a JSON array in a single `auth0_session` entry in the Laravel session store, rather than in multiple keys.
21
31
22
-
### Documentation
32
+
**Documentation**
23
33
24
34
- A demonstration Eloquent user model and repository implementation has been added to [docs/Eloquent.md](./docs/Eloquent.md).
25
35
- A new [docs/Sessions.md](./docs/Sessions.md) document has been added for guidance on the various session driver options available.
- Resolved an issue where, under certain circumstances, the AuthenticationGuard middleware could get erroneously added to the `api` middleware group, causing a session to be established in a stateless request. ([\#415](https://github.com/auth0/laravel-auth0/pull/415))
- SDK configuration (`config/auth0.php`) now supports a `configurationPath` property for specifying a custom search path for `.auth0.*.json` and `.env*` files. ([\#407](https://github.com/auth0/laravel-auth0/pull/407))
63
73
-`Auth0\Laravel\Guards\GuardAbstract` now extends `Illuminate\Contracts\Auth\Guard`. ([\#410](https://github.com/auth0/laravel-auth0/pull/410))
64
74
65
-
### Fixed
75
+
**Fixed**
66
76
67
77
- Resolved host environment variables not being loaded as expected when a `.env` file is also used. ([\#408](https://github.com/auth0/laravel-auth0/pull/408))
68
78
- Resolved surrounding quote characters not being trimmed from environment variables and `.env` files during processing. ([\#409](https://github.com/auth0/laravel-auth0/pull/409))
- Resolved an issue where parsing `.env` files could sometimes throw an exception when handling non-key-value pair strings. ([\#395](https://github.com/auth0/laravel-auth0/pull/395))
- This release adds support for authenticating using **[Pushed Authorization Requests](https://www.rfc-editor.org/rfc/rfc6749)**.
81
91
@@ -98,7 +108,7 @@
98
108
99
109
- 2 new routing Middleware have been added: `Auth0\Laravel\Http\Middleware\AuthenticatorMiddleware` and `Auth0\Laravel\Http\Middleware\AuthorizerMiddleware`. These are automatically registered with your Laravel application, and ensure the Auth0 Guards are used for authentication for `web` routes and authorization for `api` routes, respectively. This replaces the need for the `guard` middleware or otherwise manual Guard assignment in your routes.
100
110
101
-
### Improved
111
+
**Changed**
102
112
103
113
- We've introduced **a new configuration syntax**. This new syntax is more flexible and allows for more complex configuration scenarios, and introduces support for multiple guard instances. Developers using the previous syntax will have their existing configurations applied to all guards uniformly.
-`Auth0\Laravel\Auth0` now has a `management()` shortcut method for issuing Management API calls. ([\#376](https://github.com/auth0/laravel-auth0/pull/376))
114
124
115
125
-`Auth0\Laravel\Auth0\Guard` now has a `refreshUser()` method for querying `/userinfo` endpoint and refreshing the authenticated user's cached profile data. ([\#375](https://github.com/auth0/laravel-auth0/pull/375))
116
126
117
127
-`Auth0\Laravel\Http\Controller\Stateful\Login` now raises a `LoginAttempting` event, offering an opportunity to customize the authorization parameters before the login redirect is issued. ([\#382](https://github.com/auth0/laravel-auth0/pull/382))
118
128
119
-
### Improved
129
+
**Changed**
120
130
121
131
- The `tokenCache`, `managementTokenCache`, `sessionStorage` and `transientStorage` configuration values now support `false` or `string` values pointing to class names (e.g. `\Some\Cache::class`) or class aliases (e.g. `cache.psr6`) registered with Laravel. ([\#381](https://github.com/auth0/laravel-auth0/pull/381))
-`Auth0\Laravel\Http\Middleware\Guard`, new middleware that forces Laravel to route requests through a group using a specific Guard. ([\#362](https://github.com/auth0/laravel-auth0/pull/362))
128
138
129
-
### Improved
139
+
**Changed**
130
140
131
141
-`Auth0\Laravel\Http\Middleware\Stateful\Authenticate` now remembers the intended route (using `redirect()->setIntendedUrl()`) before kicking off the authentication flow redirect. Users will be returned to the memorized intended route after completing their authentication flow. ([\#364](https://github.com/auth0/laravel-auth0/pull/364))
132
142
133
-
### Fixed
143
+
**Fixed**
134
144
135
145
- legacyGuardUserMethod behavior should use `$session`, not `$token` ([\#353](https://github.com/auth0/laravel-auth0/pull/365))
- Relaxed response types from middleware to use low-level `Symfony\Component\HttpFoundation\Response` class, allowing for broader and custom response types.
This release includes support for Laravel 10, and major improvements to the internal state handling mechanisms of the SDK.
152
162
153
-
### Added
163
+
**Added**
154
164
155
165
- Support for Laravel 10 [#349](https://github.com/auth0/laravel-auth0/pull/349)
156
166
- New `Auth0\Laravel\Traits\Imposter` trait to allow for easier testing. [Example usage](./tests/Unit/Traits/ImpersonateTest.php)
157
167
- New Exception types have been added for more precise error-catching.
158
168
159
-
### Improved
169
+
**Changed**
160
170
161
171
The following changes have no effect on the external API of this package but may affect internal usage.
162
172
@@ -171,7 +181,7 @@ The following changes have no effect on the external API of this package but may
171
181
- Upgraded test suite to use PEST 2.0 framework.
172
182
- Updated test coverage to 100%.
173
183
174
-
### Fixed
184
+
**Fixed**
175
185
176
186
- A 'Session store not set on request' error could occur when downstream applications implemented unit testing that uses the Guard. This should be resolved now.
177
187
-`Guard` would not always honor the `provider` configuration value in `config/auth.php`.
@@ -191,39 +201,39 @@ We identified an issue with using identical alias naming for both the Guard and
-`Auth0\Laravel\Auth0` no longer requires a session configuration for stateless strategies, restoring previous behavior. [\#317](https://github.com/auth0/laravel-auth0/pull/317)
222
232
- The SDK now requires `^3.0` of the `psr/cache` dependency, to accommodate breaking changes made in the upstream interface (typed parameters and return types) for PHP 8.0+. [\#316](https://github.com/auth0/laravel-auth0/pull/316)
-`Auth0\Laravel\Store\LaravelSession` has been added as the default `sessionStorage` and `transientStorage` interfaces for the underlying [Auth0-PHP SDK](https://github.com/auth0/auth0-PHP/). The SDK now leverages the native [Laravel Session APIs](https://laravel.com/docs/9.x/session) by default. [\#307](https://github.com/auth0/laravel-auth0/pull/307)¹
229
239
-`Auth0\Laravel\Cache\LaravelCachePool` and `Auth0\Laravel\Cache\LaravelCacheItem` have been added as the default `tokenCache` and `managementTokenCache` interfaces for the underlying [Auth0-PHP SDK](https://github.com/auth0/auth0-PHP/). The SDK now leverages the native [Laravel Cache APIs](https://laravel.com/docs/9.x/cache) by default. [\#307](https://github.com/auth0/laravel-auth0/pull/307)
@@ -235,18 +245,18 @@ We identified an issue with using identical alias naming for both the Guard and
- Fixed an issue in `Auth0\Laravel\Http\Controller\Stateful\Callback` where `$errorDescription`'s value was assigned an incorrect value when an error was encountered. [\#266](https://github.com/auth0/laravel-auth0/pull/288)
Copy file name to clipboardExpand all lines: docs/Installation.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,13 @@
16
16
17
17
To integrate our SDK, your application must use a [supported Laravel version](https://laravelversions.com/en), and your environment must run a [supported PHP version](https://www.php.net/supported-versions.php). We do not support versions of either that are no longer supported by their maintainers. Please review [our support policy](./Support.md) for more information.
18
18
19
-
| SDK | Laravel | PHP | Supported Until |
20
-
| ---- | ------- | ----| --------------- |
21
-
| 7.5+ | 10 | 8.2+| Feb 2025 |
22
-
||| 8.1+|Nov 2024|
23
-
|7.0+ | 9| 8.2+|Feb 2024 |
24
-
||| 8.1+| Feb 2024 |
25
-
||| 8.0+|Nov 2023|
19
+
| SDK | Laravel | PHP | Supported Until |
20
+
| ---- | ------- | --- | --------------- |
21
+
| 7.5+ | 10 | 8.3| Feb 2025 |
22
+
||| 8.2|Feb 2025|
23
+
||| 8.1|Nov 2024 |
24
+
|7.0+ | 9| 8.2| Feb 2024 |
25
+
||| 8.1|Feb 2024|
26
26
27
27
You will also need [Composer 2.0+](https://getcomposer.org/) and an [Auth0 account](https://auth0.com/signup).
Copy file name to clipboardExpand all lines: src/ServiceAbstract.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ abstract class ServiceAbstract extends InstanceEntityAbstract
22
22
*
23
23
* @var string
24
24
*/
25
-
publicconstVERSION = '7.11.0';
25
+
publicconstVERSION = '7.12.0';
26
26
27
27
/**
28
28
* Decode a PSR-7 HTTP Response Message containing a JSON content body to a PHP array. Returns null if the response was not successful, or the response body was not JSON.
0 commit comments