Skip to content

Commit 2e649d7

Browse files
authored
Release 4.0.0 (#113)
1 parent d9a8d56 commit 2e649d7

File tree

3 files changed

+83
-5
lines changed

3 files changed

+83
-5
lines changed

CHANGELOG.md

+57-4
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,101 @@
11
# Change Log
22

3+
## [4.0.0](https://github.com/auth0/jwt-auth-bundle/tree/4.0.0) (2021-03-23)
4+
5+
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.4.0...4.0.0)
6+
7+
This release introduces PHP 8.0 support and upgrades the bundle to use Auth0's PHP SDK 7.x branch. It also includes expanded JWT validation options, upgraded caching support, a simplified configuration format, and other improvements.
8+
9+
This release includes potential breaking changes that may require minor changes to host applications to support. Please review [UPGRADING.md](UPGRADING.md) for guidance on updating your application.
10+
11+
**Added**
12+
13+
- Introduce PHP 8.0 support [\#108](https://github.com/auth0/jwt-auth-bundle/pull/108) ([olix21](https://github.com/olix21))
14+
- Update to latest Auth0 PHP SDK version [\#108](https://github.com/auth0/jwt-auth-bundle/pull/108) ([evansims](https://github.com/evansims))
15+
- Configuration format updated. See README for example.
16+
- Cache support updated to support PSR-6 or PSR-16 caches. This cache is handed off to the Auth0 PHP SDK for use in JWK fetching.
17+
- Added opt-in JWT validation checks around nonce, azp, org_id, and aud claims, and support for max_age and leeway checks.
18+
- Enforces strict typing and expands type hinting.
19+
- Upgrades to PHPUnit 9, and updates unit tests to support syntax changes.
20+
- Adds unit tests for new helper classes.
21+
- Adds phpcs and phpstan checks.
22+
- Adds support for Auth0 Organizations, currently in closed beta testing
23+
24+
**Changed**
25+
26+
- Use Symfony PSR-6 > PSR-16 cache adapter [\#110](https://github.com/auth0/jwt-auth-bundle/pull/110) ([darthf1](https://github.com/darthf1))
27+
328
## [3.4.0](https://github.com/auth0/jwt-auth-bundle/tree/3.4.0) (2020-06-22)
29+
430
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.3.1...3.4.0)
531

632
**Added**
33+
734
- Add support for autowiring [\#94](https://github.com/auth0/jwt-auth-bundle/pull/94) ([dunglas](https://github.com/dunglas))
835
- Give access to the raw JWT in the user provider [\#97](https://github.com/auth0/jwt-auth-bundle/pull/97) ([dunglas](https://github.com/dunglas))
936

1037
**Changed**
38+
1139
- Remove unused argument, and unused property [\#95](https://github.com/auth0/jwt-auth-bundle/pull/95) ([dunglas](https://github.com/dunglas))
1240

1341
## [3.3.1](https://github.com/auth0/jwt-auth-bundle/tree/3.3.1) (2019-12-10)
42+
1443
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.3.0...3.3.1)
1544

1645
**Fixed**
46+
1747
- Configuration authorized_issuer string or array compatibility [\#89](https://github.com/auth0/jwt-auth-bundle/pull/89) ([antzo](https://github.com/antzo))
1848

1949
## [3.3.0](https://github.com/auth0/jwt-auth-bundle/tree/3.3.0) (2019-12-05)
50+
2051
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.2.0...3.3.0)
2152

2253
**Closed issues**
54+
2355
- new release [\#86](https://github.com/auth0/jwt-auth-bundle/issues/86)
2456
- Remove SimplePreAuthenticatorInterface? [\#80](https://github.com/auth0/jwt-auth-bundle/issues/80)
2557

2658
**Added**
59+
2760
- Symfony 5 support [\#87](https://github.com/auth0/jwt-auth-bundle/pull/87) ([darthf1](https://github.com/darthf1))
2861
- Multiple authorized issuer [\#85](https://github.com/auth0/jwt-auth-bundle/pull/85) ([antzo](https://github.com/antzo))
2962

3063
**Fixed**
64+
3165
- Fix deprecation Treebuilder::root [\#79](https://github.com/auth0/jwt-auth-bundle/pull/79) ([darthf1](https://github.com/darthf1))
3266

3367
## [3.2.0](https://github.com/auth0/jwt-auth-bundle/tree/3.2.0) (2019-09-26)
68+
3469
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.1.0...3.2.0)
3570

3671
**Added**
72+
3773
- GuardAuthenticator implementation for Symfony 2.8 and later [\#75](https://github.com/auth0/jwt-auth-bundle/pull/75) ([niels-nijens](https://github.com/niels-nijens))
3874

3975
## [3.1.0](https://github.com/auth0/jwt-auth-bundle/tree/3.1.0) (2018-07-12)
76+
4077
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/3.0.2...3.1.0)
4178

4279
**Closed issues**
80+
4381
- Support Symfony4 [\#55](https://github.com/auth0/jwt-auth-bundle/issues/55)
4482
- Allow multiple audiences in config [\#54](https://github.com/auth0/jwt-auth-bundle/issues/54)
4583

4684
**Added**
85+
4786
- Add multiple audiences capability to JWT verification [\#57](https://github.com/auth0/jwt-auth-bundle/pull/57) ([joshcanhelp](https://github.com/joshcanhelp))
4887
- Allow symfony/framework-bundle 4.x [\#56](https://github.com/auth0/jwt-auth-bundle/pull/56) ([ricbra](https://github.com/ricbra))
4988

5089
## [3.0.2](https://github.com/auth0/jwt-auth-bundle/tree/3.0.2) (2017-07-19)
90+
5191
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/2.0.0...3.0.2)
5292

5393
**Added**
94+
5495
- Added support for cache [\#51](https://github.com/auth0/jwt-auth-bundle/pull/51) ([Nyholm](https://github.com/Nyholm))
5596

5697
## [2.0.0](https://github.com/auth0/jwt-auth-bundle/tree/2.0.0) (2016-01-29)
98+
5799
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.8...2.0.0)
58100

59101
**Closed issues:**
@@ -67,6 +109,7 @@
67109
- Symfony 3.0 Changes [\#25](https://github.com/auth0/jwt-auth-bundle/pull/25) ([frodosghost](https://github.com/frodosghost))
68110

69111
## [1.2.8](https://github.com/auth0/jwt-auth-bundle/tree/1.2.8) (2016-01-29)
112+
70113
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.7...1.2.8)
71114

72115
**Merged pull requests:**
@@ -75,26 +118,29 @@
75118
- YAML files that use double quotes need to escape backslashes [\#22](https://github.com/auth0/jwt-auth-bundle/pull/22) ([frodosghost](https://github.com/frodosghost))
76119

77120
## [1.2.7](https://github.com/auth0/jwt-auth-bundle/tree/1.2.7) (2016-01-18)
121+
78122
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.6...1.2.7)
79123

80124
**Merged pull requests:**
81125

82126
- updated auth0-php dependency [\#21](https://github.com/auth0/jwt-auth-bundle/pull/21) ([glena](https://github.com/glena))
83127

84128
## [1.2.6](https://github.com/auth0/jwt-auth-bundle/tree/1.2.6) (2015-11-17)
129+
85130
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.5...1.2.6)
86131

87132
**Closed issues:**
88133

89-
- Setting secret\_base64\_encoded as false causes an exception [\#18](https://github.com/auth0/jwt-auth-bundle/issues/18)
134+
- Setting secret_base64_encoded as false causes an exception [\#18](https://github.com/auth0/jwt-auth-bundle/issues/18)
90135
- Installation method is incorrect [\#15](https://github.com/auth0/jwt-auth-bundle/issues/15)
91136

92137
**Merged pull requests:**
93138

94-
- \[\#18\] Remove "cannotBeEmpty" property of secret\_base64\_encoded [\#19](https://github.com/auth0/jwt-auth-bundle/pull/19) ([mickadoo](https://github.com/mickadoo))
139+
- \[\#18\] Remove "cannotBeEmpty" property of secret_base64_encoded [\#19](https://github.com/auth0/jwt-auth-bundle/pull/19) ([mickadoo](https://github.com/mickadoo))
95140
- Replaces scope: 'openid profile' [\#17](https://github.com/auth0/jwt-auth-bundle/pull/17) ([aguerere](https://github.com/aguerere))
96141

97142
## [1.2.5](https://github.com/auth0/jwt-auth-bundle/tree/1.2.5) (2015-10-29)
143+
98144
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.4...1.2.5)
99145

100146
**Closed issues:**
@@ -108,27 +154,31 @@
108154
- Fixed typo on Symfony word [\#12](https://github.com/auth0/jwt-auth-bundle/pull/12) ([tristanbes](https://github.com/tristanbes))
109155

110156
## [1.2.4](https://github.com/auth0/jwt-auth-bundle/tree/1.2.4) (2015-07-17)
157+
111158
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.3...1.2.4)
112159

113160
**Merged pull requests:**
114161

115162
- Updated JWT dependency [\#10](https://github.com/auth0/jwt-auth-bundle/pull/10) ([glena](https://github.com/glena))
116163

117164
## [1.2.3](https://github.com/auth0/jwt-auth-bundle/tree/1.2.3) (2015-05-15)
165+
118166
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.2...1.2.3)
119167

120168
**Merged pull requests:**
121169

122170
- New info headers scheme [\#9](https://github.com/auth0/jwt-auth-bundle/pull/9) ([glena](https://github.com/glena))
123171

124172
## [1.2.2](https://github.com/auth0/jwt-auth-bundle/tree/1.2.2) (2015-05-13)
173+
125174
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.1...1.2.2)
126175

127176
**Merged pull requests:**
128177

129178
- Added optional domain config + support for auth0-php 1.0.2 [\#8](https://github.com/auth0/jwt-auth-bundle/pull/8) ([glena](https://github.com/glena))
130179

131180
## [1.2.1](https://github.com/auth0/jwt-auth-bundle/tree/1.2.1) (2015-05-12)
181+
132182
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.2.0...1.2.1)
133183

134184
**Closed issues:**
@@ -140,6 +190,7 @@
140190
- SDK Client headers spec compliant \#6 [\#7](https://github.com/auth0/jwt-auth-bundle/pull/7) ([glena](https://github.com/glena))
141191

142192
## [1.2.0](https://github.com/auth0/jwt-auth-bundle/tree/1.2.0) (2015-05-08)
193+
143194
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/1.0.0...1.2.0)
144195

145196
**Implemented enhancements:**
@@ -157,15 +208,17 @@
157208
- Api v2 + SDK 1.0 support [\#5](https://github.com/auth0/jwt-auth-bundle/pull/5) ([glena](https://github.com/glena))
158209

159210
## [1.0.0](https://github.com/auth0/jwt-auth-bundle/tree/1.0.0) (2015-01-30)
211+
160212
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/0.0.3...1.0.0)
161213

162214
## [0.0.3](https://github.com/auth0/jwt-auth-bundle/tree/0.0.3) (2015-01-28)
215+
163216
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/0.0.2...0.0.3)
164217

165218
## [0.0.2](https://github.com/auth0/jwt-auth-bundle/tree/0.0.2) (2015-01-27)
219+
166220
[Full Changelog](https://github.com/auth0/jwt-auth-bundle/compare/0.0.1...0.0.2)
167221

168222
## [0.0.1](https://github.com/auth0/jwt-auth-bundle/tree/0.0.1) (2015-01-27)
169223

170-
171-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
224+
\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_

UPGRADING.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# How to upgrade
2+
3+
## 3.x to 4.x
4+
5+
Check that your environment is compatible with 4.0's requirements before upgrading:
6+
7+
- Please ensure you are using PHP 7.3 or newer.
8+
- Ensure you are using Symfony 4.4 or newer.
9+
10+
Update your application, if necessary:
11+
12+
- If you wish to use JWK caching (recommended), please ensure the caching component you are passing to jwt-auth-bundle's configuration is either [PSR-6](https://www.php-fig.org/psr/psr-6/) or [PSR-16](https://www.php-fig.org/psr/psr-16/) compatible, such as [Symfony's cache component](https://symfony.com/doc/current/components/cache.html).
13+
- Update your application's jwt-auth-bundle configuration to follow the updated format outlined in the [README](README.md). Changes of note;
14+
- `api_identifier` is now `audience`.
15+
- `api_secret` is now `client_secret`.
16+
- `cache` requires a PSR-6/PSR-16 compatible component.
17+
- `api_identifier_array` and `secret_base64_encoded` are no longer used.
18+
- `validations` are now supported:
19+
- `azp` for validating a Client ID; defaults to `client_id`.
20+
- `aud` for validating an API identifier.
21+
- `org_id` for validating an Auth0 Organization ID.
22+
- `leeway` for the maximum age (in seconds) since the auth_time of the token.
23+
- `max_age` for clock tolerance (in seconds) for token expiration checks.
24+
- Control over validations in 4.0 is new, so guidance is not required. However, it is worth noting, you must opt-in to using these validations by assigning them values, or they will be skipped.
25+
- The only exception is `azp`, which by default will be checked against the value of `client_id`. You can override this by simply assigning it a different value.

src/JWTAuthBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
class JWTAuthBundle extends Bundle
1717
{
18-
const SDK_VERSION = '3.4.0';
18+
const SDK_VERSION = '4.0.0';
1919

2020
/**
2121
* JWTAuthBundle constructor.

0 commit comments

Comments
 (0)