Skip to content

Commit c7caea1

Browse files
committed
in-process release 2.4.0 pending some late PR merges.
1 parent a34be99 commit c7caea1

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
-->
1616

1717
## [unreleased]
18-
18+
### Added
19+
### Changed
20+
### Deprecated
21+
### Removed
1922
### Fixed
20-
* #1292 Interpret `EXP` in AccessToken always as UTC instead of own key
21-
* #1292 Introduce setting `AUTHENTICATION_SERVER_EXP_TIME_ZONE` to enable different time zone in case remote
22-
authentication server doe snot provide EXP in UTC
23+
### Security
24+
25+
## [2.4.0] - 2024-05-08
2326

2427
### WARNING
25-
* If you are going to revert migration 0006 make note that previously hashed client_secret cannot be reverted
28+
Issues caused by **Release 2.0.0 breaking changes** continue to be logged. Please **make sure to carefully read these release notes** before
29+
performing a MAJOR upgrade to 2.x.
30+
31+
These issues both result in `{"error": "invalid_client"}`:
32+
33+
1. The application client secret is now hashed upon save. You must copy it before it is saved. Using the hashed value will fail.
34+
35+
2. `PKCE_REQUIRED` is now `True` by default. You should use PKCE with your client or set `PKCE_REQUIRED=False` if you are unable to fix the client.
36+
37+
3. If you are going to revert migration 0006 make note that previously hashed client_secret cannot be reverted!
2638

2739
### Added
28-
* #1185 Add middleware for adding access token to request
29-
* #1273 Add caching of loading of OIDC private key.
30-
* #1285 Add post_logout_redirect_uris field in application views.
40+
* #1304 Add `OAuth2ExtraTokenMiddleware` for adding access token to request.
41+
See [Setup a provider](https://django-oauth-toolkit.readthedocs.io/en/latest/tutorial/tutorial_03.html#setup-a-provider) in the Tutorial.
42+
* #1273 Performance improvement: Add caching of loading of OIDC private key.
43+
* #1285 Add `post_logout_redirect_uris` field in the [Application Registration form](https://django-oauth-toolkit.readthedocs.io/en/latest/templates.html#application-registration-form-html)
3144
* #1311 Add option to disable client_secret hashing to allow verifying JWTs' signatures.
3245
* #1337 Gracefully handle expired or deleted refresh tokens, in `validate_user`.
3346
* #1350 Support Python 3.12 and Django 5.0
@@ -36,6 +49,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3649

3750

3851
### Fixed
52+
* #1292 Interpret `EXP` in AccessToken always as UTC instead of (possibly) local timezone.
53+
* #1292 Introduce setting `AUTHENTICATION_SERVER_EXP_TIME_ZONE` to enable different time zone in case remote
54+
authentication server doe snot provide EXP in UTC
3955
* #1322 Instructions in documentation on how to create a code challenge and code verifier
4056
* #1284 Allow to logout with no id_token_hint even if the browser session already expired
4157
* #1296 Added reverse function in migration 0006_alter_application_client_secret

oauth2_provider/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.3.0"
1+
__version__ = "2.4.0"

0 commit comments

Comments
 (0)