Update dependency django-oauth-toolkit to v3 #166

Closed
renovate wants to merge 1 commit from renovate/django-oauth-toolkit-3.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
django-oauth-toolkit ==2.3.0 → ==3.2.0 age confidence

Release Notes

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

v3.2.0

Compare Source

Added
  • Support for Django 5.2
  • Support for Python 3.14 (Django >= 5.2.8)
  • #​1539 Add device authorization grant support
Fixed
  • #​1252 Fix crash when 'client' is in token request body
  • #​1496 Fix error when Bearer token string is empty but preceded by Bearer keyword.
  • #​1630 use token_checksum for lookup in _get_token_from_authentication_server

v3.1.0

Compare Source

NOTE: This is the first release under the new django-oauth organization. The project moved in order to be more independent and to bypass quota limits on parallel CI jobs we were encountering in Jazzband. The project will emulate Django Commons going forward in it's operation. We're always on the lookout for willing maintainers and contributors. Feel free to start participating any time. PR's are always welcome.

Added
  • #​1506 Support for Wildcard Origin and Redirect URIs - Adds a new setting ALLOW_URL_WILDCARDS. This feature is useful for working with CI service such as cloudflare, netlify, and vercel that offer branch
    deployments for development previews and user acceptance testing.
  • #​1586 Turkish language support added
Changed

The project is now hosted in the django-oauth organization.

Fixed
  • #​1517 OP prompts for logout when no OP session
  • #​1512 client_secret not marked sensitive
  • #​1521 Fix 0012 migration loading access token table into memory
  • #​1584 Fix IDP container in docker compose environment could not find templates and static files.
  • #​1562 Fix: Handle AttributeError in IntrospectTokenView
  • #​1583 Fix: Missing pt_BR translations

v3.0.1

Compare Source

Fixed
  • #​1491 Fix migration error when there are pre-existing Access Tokens.

v3.0.0

Compare Source

WARNING - POTENTIAL BREAKING CHANGES
  • Changes to the AbstractAccessToken model require doing a manage.py migrate after upgrading.
  • If you use swappable models you will need to make sure your custom models are also updated (usually manage.py makemigrations).
  • Old Django versions below 4.2 are no longer supported.
  • A few deprecations warned about in 2.4.0 (#​1345) have been removed. See below.
Added
  • #​1366 Add Docker containerized apps for testing IDP and RP.
  • #​1454 Added compatibility with LoginRequiredMiddleware introduced in Django 5.1.
Changed
  • Many documentation and project internals improvements.
  • #​1446 Use generic models pk instead of id. This enables, for example, custom swapped models to have a different primary key field.
  • #​1447 Update token to TextField from CharField. Removing the 255 character limit enables supporting JWT tokens with additional claims.
    This adds a SHA-256 token_checksum field that is used to validate tokens.
  • #​1450 Transactions wrapping writes of the Tokens now rely on Django's database routers to determine the correct
    database to use instead of assuming that 'default' is the correct one.
  • #​1455 Changed minimum supported Django version to >=4.2.
Removed
Fixed
  • #​1444, #​1476 Fix several 500 errors to instead raise appropriate errors.
  • #​1469 Fix ui_locales request parameter triggers AttributeError under certain circumstances
Security

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 - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York, Automerge - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York.

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

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

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


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [django-oauth-toolkit](https://github.com/django-oauth/django-oauth-toolkit) | `==2.3.0` → `==3.2.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/django-oauth-toolkit/3.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/django-oauth-toolkit/2.3.0/3.2.0?slim=true) | --- ### Release Notes <details> <summary>django-oauth/django-oauth-toolkit (django-oauth-toolkit)</summary> ### [`v3.2.0`](https://github.com/django-oauth/django-oauth-toolkit/blob/HEAD/CHANGELOG.md#320---2025-11-13) [Compare Source](https://github.com/django-oauth/django-oauth-toolkit/compare/3.1.0...3.2.0) ##### Added - Support for Django 5.2 - Support for Python 3.14 (Django >= 5.2.8) - [#&#8203;1539](https://github.com/django-oauth/django-oauth-toolkit/issues/1539) Add device authorization grant support ##### Fixed - [#&#8203;1252](https://github.com/django-oauth/django-oauth-toolkit/issues/1252) Fix crash when 'client' is in token request body - [#&#8203;1496](https://github.com/django-oauth/django-oauth-toolkit/issues/1496) Fix error when Bearer token string is empty but preceded by `Bearer` keyword. - [#&#8203;1630](https://github.com/django-oauth/django-oauth-toolkit/issues/1630) use token\_checksum for lookup in \_get\_token\_from\_authentication\_server ### [`v3.1.0`](https://github.com/django-oauth/django-oauth-toolkit/blob/HEAD/CHANGELOG.md#310---2025-10-03) [Compare Source](https://github.com/django-oauth/django-oauth-toolkit/compare/3.0.1...3.1.0) **NOTE**: This is the first release under the new [django-oauth](https://github.com/django-oauth) organization. The project moved in order to be more independent and to bypass quota limits on parallel CI jobs we were encountering in Jazzband. The project will emulate Django Commons going forward in it's operation. We're always on the lookout for willing maintainers and contributors. Feel free to start participating any time. PR's are always welcome. ##### Added - [#&#8203;1506](https://github.com/django-oauth/django-oauth-toolkit/issues/1506) Support for Wildcard Origin and Redirect URIs - Adds a new setting [ALLOW\_URL\_WILDCARDS](https://django-oauth-toolkit.readthedocs.io/en/latest/settings.html#allow-uri-wildcards). This feature is useful for working with CI service such as cloudflare, netlify, and vercel that offer branch deployments for development previews and user acceptance testing. - [#&#8203;1586](https://github.com/django-oauth/django-oauth-toolkit/issues/1586) Turkish language support added ##### Changed The project is now hosted in the django-oauth organization. ##### Fixed - [#&#8203;1517](https://github.com/django-oauth/django-oauth-toolkit/issues/1517) OP prompts for logout when no OP session - [#&#8203;1512](https://github.com/django-oauth/django-oauth-toolkit/issues/1512) client\_secret not marked sensitive - [#&#8203;1521](https://github.com/django-oauth/django-oauth-toolkit/issues/1521) Fix 0012 migration loading access token table into memory - [#&#8203;1584](https://github.com/django-oauth/django-oauth-toolkit/issues/1584) Fix IDP container in docker compose environment could not find templates and static files. - [#&#8203;1562](https://github.com/django-oauth/django-oauth-toolkit/issues/1562) Fix: Handle AttributeError in IntrospectTokenView - [#&#8203;1583](https://github.com/django-oauth/django-oauth-toolkit/issues/1583) Fix: Missing pt\_BR translations ### [`v3.0.1`](https://github.com/django-oauth/django-oauth-toolkit/blob/HEAD/CHANGELOG.md#301---2024-09-07) [Compare Source](https://github.com/django-oauth/django-oauth-toolkit/compare/3.0.0...3.0.1) ##### Fixed - [#&#8203;1491](https://github.com/django-oauth/django-oauth-toolkit/issues/1491) Fix migration error when there are pre-existing Access Tokens. ### [`v3.0.0`](https://github.com/django-oauth/django-oauth-toolkit/blob/HEAD/CHANGELOG.md#300---2024-09-05) [Compare Source](https://github.com/django-oauth/django-oauth-toolkit/compare/2.4.0...3.0.0) ##### WARNING - POTENTIAL BREAKING CHANGES - Changes to the `AbstractAccessToken` model require doing a `manage.py migrate` after upgrading. - If you use swappable models you will need to make sure your custom models are also updated (usually `manage.py makemigrations`). - Old Django versions below 4.2 are no longer supported. - A few deprecations warned about in 2.4.0 ([#&#8203;1345](https://github.com/django-oauth/django-oauth-toolkit/issues/1345)) have been removed. See below. ##### Added - [#&#8203;1366](https://github.com/django-oauth/django-oauth-toolkit/issues/1366) Add Docker containerized apps for testing IDP and RP. - [#&#8203;1454](https://github.com/django-oauth/django-oauth-toolkit/issues/1454) Added compatibility with `LoginRequiredMiddleware` introduced in Django 5.1. ##### Changed - Many documentation and project internals improvements. - [#&#8203;1446](https://github.com/django-oauth/django-oauth-toolkit/issues/1446) Use generic models `pk` instead of `id`. This enables, for example, custom swapped models to have a different primary key field. - [#&#8203;1447](https://github.com/django-oauth/django-oauth-toolkit/issues/1447) Update token to TextField from CharField. Removing the 255 character limit enables supporting JWT tokens with additional claims. This adds a SHA-256 `token_checksum` field that is used to validate tokens. - [#&#8203;1450](https://github.com/django-oauth/django-oauth-toolkit/issues/1450) Transactions wrapping writes of the Tokens now rely on Django's database routers to determine the correct database to use instead of assuming that 'default' is the correct one. - [#&#8203;1455](https://github.com/django-oauth/django-oauth-toolkit/issues/1455) Changed minimum supported Django version to >=4.2. ##### Removed - [#&#8203;1425](https://github.com/django-oauth/django-oauth-toolkit/issues/1425) Remove deprecated `RedirectURIValidator`, `WildcardSet` per [#&#8203;1345](https://github.com/django-oauth/django-oauth-toolkit/issues/1345); `validate_logout_request` per [#&#8203;1274](https://github.com/django-oauth/django-oauth-toolkit/issues/1274) ##### Fixed - [#&#8203;1444](https://github.com/django-oauth/django-oauth-toolkit/issues/1444), [#&#8203;1476](https://github.com/django-oauth/django-oauth-toolkit/issues/1476) Fix several 500 errors to instead raise appropriate errors. - [#&#8203;1469](https://github.com/django-oauth/django-oauth-toolkit/issues/1469) Fix `ui_locales` request parameter triggers `AttributeError` under certain circumstances ##### Security - [#&#8203;1452](https://github.com/django-oauth/django-oauth-toolkit/issues/1452) Add a new setting [`REFRESH_TOKEN_REUSE_PROTECTION`](https://django-oauth-toolkit.readthedocs.io/en/latest/settings.html#refresh-token-reuse-protection). In combination with [`ROTATE_REFRESH_TOKEN`](https://django-oauth-toolkit.readthedocs.io/en/latest/settings.html#rotate-refresh-token), this prevents refresh tokens from being used more than once. See more at [OAuth 2.0 Security Best Current Practice](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-29#name-recommendations) - [#&#8203;1481](https://github.com/django-oauth/django-oauth-toolkit/issues/1481) Bump oauthlib version required to 3.2.2 and above to address [CVE-2022-36087](https://github.com/advisories/GHSA-3pgj-pg6c-r5p7). ### [`v2.4.0`](https://github.com/django-oauth/django-oauth-toolkit/blob/HEAD/CHANGELOG.md#240---2024-05-13) [Compare Source](https://github.com/django-oauth/django-oauth-toolkit/compare/2.3.0...2.4.0) ##### 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 - [#&#8203;1304](https://github.com/django-oauth/django-oauth-toolkit/issues/1304) Add `OAuth2ExtraTokenMiddleware` for adding access token to request. See [Setup a provider](https://django-oauth-toolkit.readthedocs.io/en/latest/tutorial/tutorial_03.html#setup-a-provider) in the Tutorial. - [#&#8203;1273](https://github.com/django-oauth/django-oauth-toolkit/issues/1273) Performance improvement: Add caching of loading of OIDC private key. - [#&#8203;1285](https://github.com/django-oauth/django-oauth-toolkit/issues/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) - [#&#8203;1311](https://github.com/django-oauth/django-oauth-toolkit/issues/1311),[#&#8203;1334](https://github.com/django-oauth/django-oauth-toolkit/issues/1334) (**Security**) Add option to disable client\_secret hashing to allow verifying JWTs' signatures when using [HS256 keys](https://django-oauth-toolkit.readthedocs.io/en/latest/oidc.html#using-hs256-keys). This means your client secret will be stored in cleartext but is the only way to successfully use HS256 signed JWT's. - [#&#8203;1350](https://github.com/django-oauth/django-oauth-toolkit/issues/1350) Support Python 3.12 and Django 5.0 - [#&#8203;1367](https://github.com/django-oauth/django-oauth-toolkit/issues/1367) Add `code_challenge_methods_supported` property to auto discovery information, per [RFC 8414 section 2](https://www.rfc-editor.org/rfc/rfc8414.html#page-7) - [#&#8203;1328](https://github.com/django-oauth/django-oauth-toolkit/issues/1328) Adds the ability to [define how to store a user profile](https://django-oauth-toolkit.readthedocs.io/en/latest/oidc.html#define-where-to-store-the-profile). ##### Fixed - [#&#8203;1292](https://github.com/django-oauth/django-oauth-toolkit/issues/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. - [#&#8203;1323](https://github.com/django-oauth/django-oauth-toolkit/issues/1323) Fix instructions in [documentation](https://django-oauth-toolkit.readthedocs.io/en/latest/getting_started.html#authorization-code) on how to create a code challenge and code verifier - [#&#8203;1284](https://github.com/django-oauth/django-oauth-toolkit/issues/1284) Fix a 500 error when trying to logout with no id\_token\_hint even if the browser session already expired. - [#&#8203;1296](https://github.com/django-oauth/django-oauth-toolkit/issues/1296) Added reverse function in migration `0006_alter_application_client_secret`. Note that reversing this migration cannot undo a hashed `client_secret`. - [#&#8203;1345](https://github.com/django-oauth/django-oauth-toolkit/issues/1345) Fix encapsulation for Redirect URI scheme validation. Deprecates `RedirectURIValidator` in favor of `AllowedURIValidator`. - [#&#8203;1357](https://github.com/django-oauth/django-oauth-toolkit/issues/1357) Move import of setting\_changed signal from test to django core modules. - [#&#8203;1361](https://github.com/django-oauth/django-oauth-toolkit/issues/1361) Fix prompt=none redirects to login screen - [#&#8203;1380](https://github.com/django-oauth/django-oauth-toolkit/issues/1380) Fix AttributeError in OAuth2ExtraTokenMiddleware when a custom AccessToken model is used. - [#&#8203;1288](https://github.com/django-oauth/django-oauth-toolkit/issues/1288) Fix [#&#8203;1276](https://github.com/django-oauth/django-oauth-toolkit/issues/1276) which attempted to resolve [#&#8203;1092](https://github.com/django-oauth/django-oauth-toolkit/issues/1092) for requests that don't have a client\_secret per [RFC 6749 4.1.1](https://www.rfc-editor.org/rfc/rfc6749.html#section-4.1.1) - [#&#8203;1337](https://github.com/django-oauth/django-oauth-toolkit/issues/1337) Gracefully handle expired or deleted refresh tokens, in `validate_user`. - Various documentation improvements: [#&#8203;1410](https://github.com/django-oauth/django-oauth-toolkit/issues/1410), [#&#8203;1408](https://github.com/django-oauth/django-oauth-toolkit/issues/1408), [#&#8203;1405](https://github.com/django-oauth/django-oauth-toolkit/issues/1405), [#&#8203;1399](https://github.com/django-oauth/django-oauth-toolkit/issues/1399), [#&#8203;1401](https://github.com/django-oauth/django-oauth-toolkit/issues/1401), [#&#8203;1396](https://github.com/django-oauth/django-oauth-toolkit/issues/1396), [#&#8203;1375](https://github.com/django-oauth/django-oauth-toolkit/issues/1375), [#&#8203;1162](https://github.com/django-oauth/django-oauth-toolkit/issues/1162), [#&#8203;1315](https://github.com/django-oauth/django-oauth-toolkit/issues/1315), [#&#8203;1307](https://github.com/django-oauth/django-oauth-toolkit/issues/1307) ##### Removed - [#&#8203;1350](https://github.com/django-oauth/django-oauth-toolkit/issues/1350) Remove support for Python 3.7 and Django 2.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York, Automerge - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York. 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40LjMiLCJ1cGRhdGVkSW5WZXIiOiI0My40LjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
chrisw-b closed this pull request 2026-02-08 16:21:02 -05:00
Author
Collaborator

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for *any* future `3.x` releases. But if you manually upgrade to `3.x` then Renovate will re-enable `minor` and `patch` updates automatically. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chrisw-b/bkwrm-container!166
No description provided.