Skip to content

Commit c07591b

Browse files
authored
Release 7.12.0 (#437)
1 parent c2a45f4 commit c07591b

File tree

5 files changed

+62
-48
lines changed

5 files changed

+62
-48
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ body:
4343
label: SDK Version
4444
description: What version of our SDK are you using? (`composer show | grep auth0/login`)
4545
options:
46+
- 7.12
47+
- 7.11
48+
- 7.10
49+
- 7.9
4650
- 7.8
4751
- 7.7
4852
- 7.6
@@ -62,9 +66,9 @@ body:
6266
label: PHP Version
6367
description: What version of PHP are you running? (`php -v`)
6468
options:
69+
- PHP 8.3
6570
- PHP 8.2
6671
- PHP 8.1
67-
- PHP 8.0
6872
- Other (specify below)
6973
validations:
7074
required: true

CHANGELOG.md

+44-34
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,58 @@
11
# Changelog
22

3-
## [7.11.0](https://github.com/auth0/laravel-auth0/tree/7.10.1) (2023-08-08)
3+
## [7.12.0](https://github.com/auth0/laravel-auth0/tree/7.12.0) (2023-12-07)
4+
[Full Changelog](https://github.com/auth0/laravel-auth0/compare/7.11.0...7.12.0)
45

5-
### Added
6+
**Added**
7+
- Implement support for Back-Channel Logout [\#435](https://github.com/auth0/laravel-auth0/pull/435) ([evansims](https://github.com/evansims))
8+
- Restore configurable route paths [\#436](https://github.com/auth0/laravel-auth0/pull/436) ([evansims](https://github.com/evansims))
9+
10+
**Fixed**
11+
- Resolve `CacheBridgeAbstract::save()` not storing values when cache misses [\#434](https://github.com/auth0/laravel-auth0/pull/434) ([seruymt](https://github.com/seruymt))
12+
13+
## [7.11.0](https://github.com/auth0/laravel-auth0/tree/7.11.0) (2023-08-08)
14+
15+
**Added**
616

717
- Significant performance improvements by eliminating redundant user queries.
818
- Compatibility support for [Laravel Telescope](https://laravel.com/docs/telescope). See [docs/Telescope.md](./docs/Telescope.md) for more information.
919
- A refactored Events API has been introduced. See [docs/Events.md](./docs/Events.md) for more information.
1020
- `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.
1121

12-
### Fixed
22+
**Fixed**
1323

1424
- Addressed an issue where, under certain circumstances, the first user authentication attempt after a session invalidation could fail.
1525

16-
### Changed
26+
**Changed**
1727

1828
- Session regeneration/invalidation has been refactored.
1929
- Discarded sessions are now deleted when they are invalidated by the SDK, rather than wait for Laravel to garbage collect.
2030
- 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.
2131

22-
### Documentation
32+
**Documentation**
2333

2434
- A demonstration Eloquent user model and repository implementation has been added to [docs/Eloquent.md](./docs/Eloquent.md).
2535
- A new [docs/Sessions.md](./docs/Sessions.md) document has been added for guidance on the various session driver options available.
2636

2737
## [7.10.1](https://github.com/auth0/laravel-auth0/tree/7.10.1) (2023-08-07)
2838

29-
### Fixed
39+
**Fixed**
3040

3141
- Addressed an issue where, under certain circumstances, permissions state could be lost after authenticating.
3242

3343
## [7.10.0](https://github.com/auth0/laravel-auth0/tree/7.10.0) (2023-07-24)
3444

35-
### Added
45+
**Added**
3646

3747
- Organization Name support added for Authentication API and token handling ¹
3848

39-
### Changed
49+
**Changed**
4050

4151
- Guards are now registered with the priority middleware list.
4252
- Bumped `auth0-php` dependency version range to `^8.7`.
4353
- Updated telemetry to indicate new `laravel` package name (previously `laravel-auth0`.)
4454

45-
### Fixed
55+
**Fixed**
4656

4757
- Addressed issue where placeholder `AUTH0_` dotenv values could erroneously be interpreted as true configuration values.
4858

@@ -51,31 +61,31 @@
5161
5262
## [7.9.1](https://github.com/auth0/laravel-auth0/tree/7.9.1) (2023-06-21)
5363

54-
### Fixed
64+
**Fixed**
5565

5666
- 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))
5767

5868
## [7.9.0](https://github.com/auth0/laravel-auth0/tree/7.9.0) (2023-06-15)
5969

60-
### Added
70+
**Added**
6171

6272
- 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))
6373
- `Auth0\Laravel\Guards\GuardAbstract` now extends `Illuminate\Contracts\Auth\Guard`. ([\#410](https://github.com/auth0/laravel-auth0/pull/410))
6474

65-
### Fixed
75+
**Fixed**
6676

6777
- 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))
6878
- Resolved surrounding quote characters not being trimmed from environment variables and `.env` files during processing. ([\#409](https://github.com/auth0/laravel-auth0/pull/409))
6979

7080
## [7.8.1](https://github.com/auth0/laravel-auth0/tree/7.8.1) (2023-05-19)
7181

72-
### Fixed
82+
**Fixed**
7383

7484
- 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))
7585

7686
## [7.8.0](https://github.com/auth0/laravel-auth0/tree/7.8.0) (2023-05-18)
7787

78-
### Added
88+
**Added**
7989

8090
- This release adds support for authenticating using **[Pushed Authorization Requests](https://www.rfc-editor.org/rfc/rfc6749)**.
8191

@@ -98,7 +108,7 @@
98108

99109
- 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.
100110

101-
### Improved
111+
**Changed**
102112

103113
- 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.
104114

@@ -108,55 +118,55 @@
108118

109119
## [7.7.0](https://github.com/auth0/laravel-auth0/tree/7.7.0) (2023-04-26)
110120

111-
### Added
121+
**Added**
112122

113123
- `Auth0\Laravel\Auth0` now has a `management()` shortcut method for issuing Management API calls. ([\#376](https://github.com/auth0/laravel-auth0/pull/376))
114124

115125
- `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))
116126

117127
- `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))
118128

119-
### Improved
129+
**Changed**
120130

121131
- 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))
122132

123133
## [7.6.0](https://github.com/auth0/laravel-auth0/tree/7.6.0) (2023-04-12)
124134

125-
### Added
135+
**Added**
126136

127137
- `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))
128138

129-
### Improved
139+
**Changed**
130140

131141
- `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))
132142

133-
### Fixed
143+
**Fixed**
134144

135145
- legacyGuardUserMethod behavior should use `$session`, not `$token` ([\#353](https://github.com/auth0/laravel-auth0/pull/365))
136146

137147
## [7.5.2](https://github.com/auth0/laravel-auth0/tree/7.5.2) (2023-04-10)
138148

139-
### Fixed
149+
**Fixed**
140150

141151
- Relaxed response types from middleware to use low-level `Symfony\Component\HttpFoundation\Response` class, allowing for broader and custom response types.
142152

143153
## [7.5.1](https://github.com/auth0/laravel-auth0/tree/7.5.1) (2023-04-04)
144154

145-
### Fixed
155+
**Fixed**
146156

147157
- Resolved an issue wherein custom user repositories could fail to be instantiated under certain circumstances.
148158

149159
## [7.5.0](https://github.com/auth0/laravel-auth0/tree/7.5.0) (2023-04-03)
150160

151161
This release includes support for Laravel 10, and major improvements to the internal state handling mechanisms of the SDK.
152162

153-
### Added
163+
**Added**
154164

155165
- Support for Laravel 10 [#349](https://github.com/auth0/laravel-auth0/pull/349)
156166
- New `Auth0\Laravel\Traits\Imposter` trait to allow for easier testing. [Example usage](./tests/Unit/Traits/ImpersonateTest.php)
157167
- New Exception types have been added for more precise error-catching.
158168

159-
### Improved
169+
**Changed**
160170

161171
The following changes have no effect on the external API of this package but may affect internal usage.
162172

@@ -171,7 +181,7 @@ The following changes have no effect on the external API of this package but may
171181
- Upgraded test suite to use PEST 2.0 framework.
172182
- Updated test coverage to 100%.
173183

174-
### Fixed
184+
**Fixed**
175185

176186
- 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.
177187
- `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
191201

192202
## [7.4.0](https://github.com/auth0/laravel-auth0/tree/7.4.0) (2022-12-12)
193203

194-
### Added
204+
**Added**
195205

196206
- feat: Add `Auth0\Laravel\Event\Middleware\...` event hooks [\#340](https://github.com/auth0/laravel-auth0/pull/340)
197207
- feat: Add `Auth0\Laravel\Event\Configuration\Building` event hook [\#339](https://github.com/auth0/laravel-auth0/pull/339)
198208

199209
## [7.3.0](https://github.com/auth0/laravel-auth0/tree/7.3.0) (2022-11-07)
200210

201-
### Added
211+
**Added**
202212

203213
- add: Raise additional Laravel Auth Events [\#331](https://github.com/auth0/laravel-auth0/pull/331)
204214

205-
### Fixed
215+
**Fixed**
206216

207217
- fix: `env()` incorrectly assigns `cookieExpires` to a `string` value [\#332](https://github.com/auth0/laravel-auth0/pull/332)
208218
- fix: Auth0\Laravel\Cache\LaravelCachePool::createItem returning a cache miss [\#329](https://github.com/auth0/laravel-auth0/pull/329)
209219

210220
## [7.2.2](https://github.com/auth0/laravel-auth0/tree/7.2.2) (2022-10-19)
211221

212-
### Fixed
222+
**Fixed**
213223

214224
- Restore `php artisan vendor:publish` command [\#321](https://github.com/auth0/laravel-auth0/pull/321)
215225
- Bump minimum `auth0/auth0-php` version to `^8.3.4` [\#322](https://github.com/auth0/laravel-auth0/pull/322)
216226

217227
## [7.2.1](https://github.com/auth0/laravel-auth0/tree/7.2.1) (2022-10-13)
218228

219-
### Fixed
229+
**Fixed**
220230

221231
- `Auth0\Laravel\Auth0` no longer requires a session configuration for stateless strategies, restoring previous behavior. [\#317](https://github.com/auth0/laravel-auth0/pull/317)
222232
- 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)
223233

224234
## [7.2.0](https://github.com/auth0/laravel-auth0/tree/7.2.0) (2022-10-10)
225235

226-
### Improved
236+
**Changed**
227237

228238
- `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)¹
229239
- `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
235245

236246
## [7.1.0](https://github.com/auth0/laravel-auth0/tree/7.1.0) (2022-08-08)
237247

238-
### Improved
248+
**Changed**
239249

240250
- Return interfaces instead of concrete classes [\#296](https://github.com/auth0/laravel-auth0/pull/296)
241251
- change: Use class names for `app()` calls [\#291](https://github.com/auth0/laravel-auth0/pull/291)
242252

243-
### Fixed
253+
**Fixed**
244254

245255
- Fix: `Missing Code` error on Callback Route for Octane Customers [\#297](https://github.com/auth0/laravel-auth0/pull/297)
246256

247257
## [7.0.1](https://github.com/auth0/laravel-auth0/tree/7.0.1) (2022-06-01)
248258

249-
### Fixed
259+
**Fixed**
250260

251261
- 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)
252262

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ Your application must use a [supported Laravel version](https://laravelversions.
3030

3131
| SDK | Laravel | PHP | Supported Until |
3232
| ---- | ---------------------------------------------- | ----------------------------------------------- | --------------- |
33-
| 7.5+ | [10.x](https://laravel.com/docs/10.x/releases) | [8.2+](https://www.php.net/releases/8.2/en.php) | Feb 2025 |
34-
| | | [8.1+](https://www.php.net/releases/8.1/en.php) | Nov 2024 |
35-
| 7.0+ | [9.x](https://laravel.com/docs/9.x/releases) | [8.2+](https://www.php.net/releases/8.2/en.php) | Feb 2024 |
36-
| | | [8.1+](https://www.php.net/releases/8.1/en.php) | Feb 2024 |
37-
| | | [8.0+](https://www.php.net/releases/8.0/en.php) | Nov 2023 |
33+
| 7.5+ | [10.x](https://laravel.com/docs/10.x/releases) | [8.3](https://www.php.net/releases/8.2/en.php) | Feb 2025 |
34+
| | | [8.2](https://www.php.net/releases/8.1/en.php) | Feb 2025 |
35+
| | | [8.1](https://www.php.net/releases/8.1/en.php) | Nov 2024 |
36+
| 7.0+ | [9.x](https://laravel.com/docs/9.x/releases) | [8.2](https://www.php.net/releases/8.2/en.php) | Feb 2024 |
37+
| | | [8.1](https://www.php.net/releases/8.1/en.php) | Feb 2024 |
3838

3939
You will also need [Composer](https://getcomposer.org/) and an [Auth0 account](https://auth0.com/signup).
4040

docs/Installation.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
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.
1818

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 |
2626

2727
You will also need [Composer 2.0+](https://getcomposer.org/) and an [Auth0 account](https://auth0.com/signup).
2828

src/ServiceAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract class ServiceAbstract extends InstanceEntityAbstract
2222
*
2323
* @var string
2424
*/
25-
public const VERSION = '7.11.0';
25+
public const VERSION = '7.12.0';
2626

2727
/**
2828
* 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

Comments
 (0)