Skip to content

Update dependency django-oauth-toolkit to v2.4.0

This MR contains the following updates:

Package Type Update Change
django-oauth-toolkit dependencies minor 2.3.0 -> 2.4.0

Release Notes

jazzband/django-oauth-toolkit (django-oauth-toolkit)

v2.4.0

Compare Source

WARNING

Issues caused by Release 2.0.0 breaking changes continue to be logged. Please make sure to carefully read these release notes before performing a MAJOR upgrade to 2.x.

These issues both result in {"error": "invalid_client"}:

  1. The application client secret is now hashed upon save. You must copy it before it is saved. Using the hashed value will fail.

  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.

If you are going to revert migration 0006 make note that previously hashed client_secret cannot be reverted!

Added
Fixed
  • #​1292 Interpret EXP in AccessToken always as UTC instead of (possibly) local timezone. Use setting AUTHENTICATION_SERVER_EXP_TIME_ZONE to enable different time zone in case the remote authentication server does not provide EXP in UTC.
  • #​1323 Fix instructions in documentation on how to create a code challenge and code verifier
  • #​1284 Fix a 500 error when trying to logout with no id_token_hint even if the browser session already expired.
  • #​1296 Added reverse function in migration 0006_alter_application_client_secret. Note that reversing this migration cannot undo a hashed client_secret.
  • #​1345 Fix encapsulation for Redirect URI scheme validation. Deprecates RedirectURIValidator in favor of AllowedURIValidator.
  • #​1357 Move import of setting_changed signal from test to django core modules.
  • #​1361 Fix prompt=none redirects to login screen
  • #​1380 Fix AttributeError in OAuth2ExtraTokenMiddleware when a custom AccessToken model is used.
  • #​1288 Fix #​1276 which attempted to resolve #​1092 for requests that don't have a client_secret per RFC 6749 4.1.1
  • #​1337 Gracefully handle expired or deleted refresh tokens, in validate_user.
  • Various documentation improvements: #​1410, #​1408, #​1405, #​1399, #​1401, #​1396, #​1375, #​1162, #​1315, #​1307
Removed
  • #​1350 Remove support for Python 3.7 and Django 2.2

Configuration

📅 Schedule: Branch creation - "before 7am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports