Skip to content

Commit a6bd0d0

Browse files
authored
Release 1.7.0 (#1096)
1 parent 9fbe840 commit a6bd0d0

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

CHANGELOG.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Security
1515
-->
1616

17-
## [Unreleased]
17+
## [1.7.0] 2022-01-23
1818

1919
### Added
20-
* #651 Batch expired token deletions in `cleartokens` management command
21-
* Added pt-BR translations.
22-
* #1070 Add a Celery task for clearing expired tokens, e.g. to be scheduled as a [periodic task](https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html)
23-
* #1069 OIDC: Re-introduce [additional claims](https://django-oauth-toolkit.readthedocs.io/en/latest/oidc.html#adding-claims-to-the-id-token) beyond `sub` to the id_token.
20+
* #969 Add batching of expired token deletions in `cleartokens` management command and `models.clear_expired()`
21+
to improve performance for removal of large numers of expired tokens. Configure with
22+
[`CLEAR_EXPIRED_TOKENS_BATCH_SIZE`](https://django-oauth-toolkit.readthedocs.io/en/latest/settings.html#clear-expired-tokens-batch-size) and
23+
[`CLEAR_EXPIRED_TOKENS_BATCH_INTERVAL`](https://django-oauth-toolkit.readthedocs.io/en/latest/settings.html#clear-expired-tokens-batch-interval).
24+
* #1070 Add a Celery task for clearing expired tokens, e.g. to be scheduled as a [periodic task](https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html).
25+
* #1062 Add Brazilian Portuguese (pt-BR) translations.
26+
* #1069 OIDC: Add an alternate form of
27+
[get_additional_claims()](https://django-oauth-toolkit.readthedocs.io/en/latest/oidc.html#adding-claims-to-the-id-token)
28+
which makes the list of additional `claims_supported` available at the OIDC auto-discovery endpoint (`.well-known/openid-configuration`).
2429

2530
### Fixed
26-
* #1012 Return status for introspecting a nonexistent token from 401 to the correct value of 200 per [RFC 7662](https://datatracker.ietf.org/doc/html/rfc7662#section-2.2).
31+
* #1012 Return 200 status code with `{"active": false}` when introspecting a nonexistent token
32+
per [RFC 7662](https://datatracker.ietf.org/doc/html/rfc7662#section-2.2). It had been incorrectly returning 401.
2733

2834
## [1.6.3] 2022-01-11
2935

oauth2_provider/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import django
22

33

4-
__version__ = "1.6.3"
4+
__version__ = "1.7.0"
55

66
if django.VERSION < (3, 2):
77
default_app_config = "oauth2_provider.apps.DOTConfig"

0 commit comments

Comments
 (0)