Skip to content

Jan 2023 Jazz Master merge #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 157 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
a92adef
Fix ES locale translation error (#499)
Pijuli Jan 25, 2022
3071865
chore: test on Django 4.0 (#495)
bertonha Jan 25, 2022
9014f14
Stop deleting blacklist on user delete (#516)
vainu-arto Jan 25, 2022
72dd1a5
[pre-commit.ci] pre-commit autoupdate (#498)
pre-commit-ci[bot] Jan 25, 2022
92124cf
Enable ECDSA algorithms supported by PyJWT (#520)
vainu-arto Jan 28, 2022
1b2e20e
Simplify using custom token classes in serializers (#517)
vainu-arto Jan 29, 2022
4feb37a
[pre-commit.ci] pre-commit autoupdate (#524)
pre-commit-ci[bot] Jan 31, 2022
ed0f7b6
Make the token serializer configurable (#521)
2ykwang Feb 2, 2022
40a7cb1
Update translation files (#526)
2ykwang Feb 2, 2022
dc42547
Add default __getattr__ behavior to models.TokenUser (#528)
oscarychen Feb 6, 2022
5338fd6
Allow overriding access token class (#529)
vainu-arto Feb 7, 2022
1f3e73d
Maintain compatibility with serializer_class overrides (#530)
vainu-arto Feb 8, 2022
1ea72de
Consider leeway when checking expiry (#458)
totycro Feb 10, 2022
6587c2a
Add locale checker to CI (#456)
Andrew-Chen-Wang Feb 28, 2022
d51841e
Update CHANGELOG.md for v5.1.0 (#527)
2ykwang Feb 28, 2022
483d9b8
Fix i18n CI (#538)
2ykwang Feb 28, 2022
fdc7923
Open PR on i18n (#539)
Andrew-Chen-Wang Feb 28, 2022
09d6599
fix small typo (#540)
2ykwang Feb 28, 2022
304819c
Setup initial PyJWT 1.7.1 support (#536)
Andrew-Chen-Wang Mar 1, 2022
06a55ce
Fix release locale checker (#541)
Andrew-Chen-Wang Mar 1, 2022
72000af
Update locale files (#542)
Andrew-Chen-Wang Mar 1, 2022
80848c8
[pre-commit.ci] pre-commit autoupdate (#545)
pre-commit-ci[bot] Mar 14, 2022
3fc9110
Remove the JWTTokenUserAuthentication from the Experimental Features …
byrpatrick Mar 18, 2022
ddd05ca
Change from git protocol to https protocol (#555)
2ykwang Apr 10, 2022
4f223fe
[pre-commit.ci] pre-commit autoupdate (#551)
pre-commit-ci[bot] Apr 10, 2022
28f5087
Fix leeway type error (#554)
2ykwang Apr 10, 2022
d959114
[pre-commit.ci] pre-commit autoupdate (#557)
pre-commit-ci[bot] Apr 12, 2022
c6e6598
Add info on TokenBlacklistView to the docs (#558)
inti7ary Apr 18, 2022
820a576
chore(ci): add informational Codecov status checks (#559)
thomasrockhu-codecov Apr 23, 2022
8e8a08a
Update JWTStatelessUserAuthentication docs (#561)
2ykwang Apr 23, 2022
70b8f84
Allow none jti claim token type claim (#567)
mrdinwiddie May 3, 2022
58b1874
Allow customizing token JSON encoding (#568)
vainu-arto May 4, 2022
5060858
[pre-commit.ci] pre-commit autoupdate (#571)
pre-commit-ci[bot] May 9, 2022
1e20e3f
Update CHANGELOG to 5.2.0 (#573)
Andrew-Chen-Wang May 21, 2022
dfc954c
Locale update (#574)
Andrew-Chen-Wang May 24, 2022
085a3bd
update & correct supported versions in docs (#576)
asaah18 May 24, 2022
2cf3269
Add Swedish translations (#579)
pasindu-pr Jun 3, 2022
4b65afb
Fixed issue #543 (#586)
armenak-baburyan Jun 6, 2022
aa21b20
[pre-commit.ci] pre-commit autoupdate (#587)
pre-commit-ci[bot] Jun 13, 2022
c707cf8
[pre-commit.ci] pre-commit autoupdate (#589)
pre-commit-ci[bot] Jul 6, 2022
cd4ea99
[pre-commit.ci] pre-commit autoupdate (#590)
pre-commit-ci[bot] Jul 11, 2022
8da04de
[pre-commit.ci] pre-commit autoupdate (#594)
pre-commit-ci[bot] Jul 26, 2022
2511712
[pre-commit.ci] pre-commit autoupdate (#597)
pre-commit-ci[bot] Aug 1, 2022
9b6f1de
[pre-commit.ci] pre-commit autoupdate (#601)
pre-commit-ci[bot] Aug 9, 2022
17ef9f8
Fix uncaught exception with JWK (#600)
jerr0328 Aug 15, 2022
9b6e3b7
Test on Django 4.1 (#604)
2ykwang Aug 15, 2022
d49b466
[pre-commit.ci] pre-commit autoupdate (#609)
pre-commit-ci[bot] Sep 5, 2022
e96fd73
Add v5.2.1 changes (#611)
Andrew-Chen-Wang Sep 13, 2022
d1c2c7c
use non-deprecated UTC timezone (#606)
BSVogler Sep 16, 2022
8d0a806
Added Romanian translations (#591)
DCDie Sep 16, 2022
8236a13
allow verification skipping (#605)
domdinicola Sep 16, 2022
bdfe841
[pre-commit.ci] pre-commit autoupdate (#619)
pre-commit-ci[bot] Sep 20, 2022
d6b334a
[pre-commit.ci] pre-commit autoupdate (#620)
pre-commit-ci[bot] Sep 26, 2022
7740384
Update locale files (#624)
Andrew-Chen-Wang Sep 28, 2022
6c03c4e
Revert 605 (#629)
Andrew-Chen-Wang Oct 10, 2022
b11e1d0
[pre-commit.ci] pre-commit autoupdate (#630)
pre-commit-ci[bot] Oct 17, 2022
bd4c6ce
[Docs] Fix typo in blacklist_app.rst (#593)
cbscsm Oct 20, 2022
cc96fd6
[pre-commit.ci] pre-commit autoupdate (#641)
pre-commit-ci[bot] Nov 15, 2022
f94e409
[pre-commit.ci] pre-commit autoupdate (#648)
pre-commit-ci[bot] Dec 4, 2022
5125382
Added Slovenian translations (#645)
banDeveloper Dec 4, 2022
317ee9a
[pre-commit.ci] pre-commit autoupdate (#652)
pre-commit-ci[bot] Dec 12, 2022
9fc9b15
[pre-commit.ci] pre-commit autoupdate (#655)
pre-commit-ci[bot] Dec 20, 2022
668f47e
Rename de_CH to DE (Fixes #614) (#653)
Andrew-Chen-Wang Dec 20, 2022
9adb156
Add Python 3.11 to CI, tox, and trove classifiers (#636)
joshuadavidthomas Jan 17, 2023
b959771
[pre-commit.ci] pre-commit autoupdate (#657)
pre-commit-ci[bot] Jan 23, 2023
e67944a
Add Inlang to enable community translations / make the contribution o…
jannesblobel Jan 28, 2023
063e5a2
[pre-commit.ci] pre-commit autoupdate (#666)
pre-commit-ci[bot] Feb 4, 2023
b0b8d1e
Update docs on serializer customization (#668)
2ykwang Feb 14, 2023
60ab226
Fixes #676 - Remove reference to django2.2 (#677)
mattseymour Feb 26, 2023
960ab2b
fix: rm unused serializers module in views.py (#681)
abel9851 Mar 6, 2023
8258b5f
feat: adding typehints (#683)
abczzz13 Mar 10, 2023
c88f465
Removing dj-22 and djmain from the tox config (#691)
abczzz13 Mar 23, 2023
f298efa
Add DRF 3.14 Support (#623)
Andrew-Chen-Wang Apr 9, 2023
ed75551
Update `django.po` for id translation (#685)
kiraware May 18, 2023
523612e
add he_IL to locale (#679)
elam91 May 18, 2023
aa077a4
Updated translations for Persian (fa) language (#708)
mahdirahimi1999 May 18, 2023
605cec4
Update customizing_token_claims.rst (#714)
rodrq Jun 21, 2023
51d2b24
Added write_only=True for better doc generation (#699)
Yaser-Amiri Jun 21, 2023
9c8e70c
Add support for Django 4.2 (#711)
johnthagen Jun 21, 2023
6e7c752
Add Arabic language translations (#690)
iamjazzar Jun 21, 2023
c65036c
[pre-commit.ci] pre-commit autoupdate (#694)
pre-commit-ci[bot] Jun 21, 2023
d2cd59d
Improve testing (#688)
kiraware Jun 21, 2023
a775004
Revoke access token if user password is changed (#719)
mahdirahimi1999 Jun 27, 2023
47b7a08
Updated translations for Persian (fa) language (#723)
mahdirahimi1999 Jul 6, 2023
6c52647
Release version 5.3.0 (#735)
aqeelat Aug 9, 2023
16866f5
Sync .mo files (#736)
Aug 10, 2023
faf92e8
Sync .mo files (#737)
Aug 10, 2023
19cf38e
Remove EOL Python, Django and DRF versions (#754)
KOliver94 Oct 30, 2023
ef23fb8
Update Korean translations (#753)
TGoddessana Nov 2, 2023
d810271
Declare support for type checking (closes #664) (#760)
PedroPerpetua Nov 6, 2023
8ae34dd
Remove usages of deprecated datetime.utcnow() and datetime.utcfromtim…
kozlek Dec 4, 2023
c3cfd3e
Increase coverage (#722)
kiraware Dec 4, 2023
b88182c
Update action versions (#739)
Dec 4, 2023
ae5e084
Use f-string in views (#750)
Egor-oop Dec 4, 2023
7825d83
[pre-commit.ci] pre-commit autoupdate (#724)
pre-commit-ci[bot] Dec 4, 2023
53ac872
Correct AUTH_HEADER_NAME in docs (#725)
chicosilva Dec 4, 2023
0b50ee6
Fix tests (#769)
Dresdn Dec 5, 2023
272e2b2
Enhance BlacklistMixin with Generic Type for Accurate Type Inference
Dresdn Dec 4, 2023
64b32c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 4, 2023
fc03667
Add pull request write permission to i18n updater
Andrew-Chen-Wang Dec 5, 2023
c791e98
Improve type of `Token.for_user` to allow subclasses
sterliakov Dec 29, 2023
509f2b1
Document support for Python 3.12/Django 5.0/DRF 3.15 (#795)
dduong42 May 1, 2024
3b71b89
Auto Update Locale Files (#780)
dpgraham4401 May 1, 2024
d66d246
Fix the None value of the outstanding token of the blacklist (#806)
JaeHyuckSa May 30, 2024
79a0d52
Fix: Disable refresh token for inactive user. (#814)
ajay09 Oct 30, 2024
9911c85
Add option to allow inactive user authentication and token generation…
zxkeyy Dec 23, 2024
c6b428d
Added additional explanation for TokenVerifyView (#833)
amirreza8002 Jan 2, 2025
59ae4b6
fix: Add support for EdDSA and other algorithms in jwt.algorithms.req…
fossy-dude Jan 2, 2025
7f300a2
Drop Django <4.2, DRF <3.14, Python <3.9 (#839)
Andrew-Chen-Wang Jan 3, 2025
c8f4910
Bump version to 5.4.0 (#842)
Andrew-Chen-Wang Jan 7, 2025
7f692a1
Setup Dependabot Config (#845)
ashwanthbalakrishnan5 Jan 7, 2025
3a3e28f
Bump actions/setup-python from 2 to 5 (#849)
dependabot[bot] Jan 7, 2025
7637f31
Update locale (#844)
Andrew-Chen-Wang Jan 7, 2025
2dc6c99
Bump actions/checkout from 2 to 4 (#847)
dependabot[bot] Jan 7, 2025
413cd3b
Bump actions/cache from 2 to 4
dependabot[bot] Jan 7, 2025
7bda24f
Bump codecov/codecov-action from 1 to 5
dependabot[bot] Jan 7, 2025
23189c3
Bump peter-evans/create-pull-request from 6 to 7 (#848)
dependabot[bot] Jan 7, 2025
cb00a8b
Update requirements in docs (#840)
jnovinger Jan 7, 2025
9a66629
Cap PyJWT version to <2.10.0 to avoid incompatibility with subject cl…
grayver Jan 9, 2025
f602132
Add specific "token expired" exceptions (#830)
vainu-arto Jan 11, 2025
2586375
Move pyupgrade to python version 3.9
vgrozdanic Jan 12, 2025
bfb27ce
Run pyupgrade on project
vgrozdanic Jan 12, 2025
6511962
Remove unused imports in tokens.py
vgrozdanic Jan 12, 2025
d9c7331
remove unused imports
vgrozdanic Jan 12, 2025
e99ea81
chore: clean redefinition of mock_jwk_module in backend tests (#855)
vgrozdanic Jan 13, 2025
d4d0aaf
Add ruff linter and formatter to pre-commit (#856)
vgrozdanic Jan 13, 2025
a9ee40d
[pre-commit.ci] pre-commit autoupdate (#772)
pre-commit-ci[bot] Feb 4, 2025
a01cb8b
Fix user_id type mismatch when user claim is not pk (#851)
jdg-journeyfront Feb 6, 2025
a041ccf
Caching signing key (#859)
henryfool91 Feb 14, 2025
b962aca
Adds new refresh tokens to OutstandingToken db. (#866)
thecarpetjasp Feb 21, 2025
93c4891
[pre-commit.ci] pre-commit autoupdate (#862)
pre-commit-ci[bot] Feb 25, 2025
eb8d61a
Update locale files (#853)
github-actions[bot] Feb 25, 2025
faeea49
Update CHANGELOG.md (#869)
Andrew-Chen-Wang Feb 26, 2025
c1231af
:globe_with_meridians: Fix typos and improve clarity in es_AR transla…
fabianfalon Feb 27, 2025
1ad763b
docs: Add warning in docs for `for_user` usage (#872)
vgrozdanic Feb 27, 2025
14e8b2c
feat: log warning if token is being created for inactive user (#873)
vgrozdanic Feb 28, 2025
4def3fb
ref: full tracebacks on exceptions (#870)
vgrozdanic Mar 2, 2025
efb105e
#858 New i18n messages (#879)
Cloves23 Mar 2, 2025
00de028
Repair the type annotations in the TokenViewBase class. (#880)
triplepoint Mar 3, 2025
027c79c
fix: Token.outstand forces users to install blacklist app (#884)
Andrew-Chen-Wang Mar 10, 2025
1ac00c6
fix: PytestConfigWarning Unknown config option: python_paths (#886)
vgrozdanic Mar 10, 2025
acacec8
fix: Do not copy `iat` claim from refresh token (#888)
vgrozdanic Mar 10, 2025
54703bb
[pre-commit.ci] pre-commit autoupdate (#882)
pre-commit-ci[bot] Mar 14, 2025
acb1483
Update Persian translations (fa, fa_IR) for Django application (#897)
mahdirahimi1999 Mar 28, 2025
774a6f8
fix: add missing migration for token_blacklist app (#894)
juanbailon Apr 28, 2025
71c72e1
chore: add Django 5.2 support to test matrix and packaging
mahdirahimi1999 Apr 12, 2025
d63d86d
Update RTD config
jezdez Jun 11, 2025
b358417
Remove pin for Sphinx.
jezdez Jun 11, 2025
6bc2a14
Fix rST syntax.
jezdez Jun 11, 2025
e58e16b
For rST fixes.
jezdez Jun 11, 2025
890e136
Fix ref.
jezdez Jun 11, 2025
d77ae20
fix: always stringify user_id claim (#887)
vgrozdanic Jul 21, 2025
a3f0e6d
[pre-commit.ci] pre-commit autoupdate (#892)
pre-commit-ci[bot] Jul 21, 2025
a2d0a02
Update CHANGELOG.md for 5.5.1 (#891)
Andrew-Chen-Wang Jul 21, 2025
be0301e
Update locale files (#878)
github-actions[bot] Jul 21, 2025
d520fd7
[pre-commit.ci] pre-commit autoupdate (#921)
pre-commit-ci[bot] Jul 22, 2025
6c45510
Bump actions/checkout from 4 to 5 (#926)
dependabot[bot] Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
- "djangorestframework-simplejwt"
labels:
- "dependencies"
48 changes: 48 additions & 0 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update locale files

on:
push:
branches:
- main
- master

jobs:
locale-updater:
permissions:
pull-requests: write
contents: write
if: github.repository == 'jazzband/djangorestframework-simplejwt'
name: Locale updater
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: setup.py

- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install --upgrade pip wheel setuptools
pip install -e .[dev]

- name: Run locale Update Script
working-directory:
rest_framework_simplejwt
run: python ../scripts/i18n_updater.py

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: i18n-auto-update
title: "[i18n] Update"
body: "Updated locale files on trunk"
commit-message: "Update locale files"
add-paths: rest_framework_simplejwt/locale/**
delete-branch: true
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.9'

- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
pip install -e .[dev]

- name: Check locale
working-directory: rest_framework_simplejwt
run: |
echo "Checking if locale files need updating. If they do, cd rest_framework_simplejwt && run python ../scripts/i18n_updater.py"
python ../scripts/i18n_updater.py
git diff --exit-code

- name: Build package
run: |
Expand All @@ -33,7 +42,7 @@ jobs:

- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
Expand Down
28 changes: 11 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,20 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.1', '3.2', 'main']
drf-version: ['3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', '5.1', '5.2']
drf-version: ['3.14', '3.15']
exclude:
- python-version: '3.7'
django-version: 'main'
- python-version: '3.8'
django-version: 'main'
- django-version: '3.1'
drf-version: '3.10'
- python-version: '3.10'
django-version: '2.2'
- python-version: '3.10'
django-version: '3.1'
- drf-version: '3.14'
django-version: '5.0'
- drf-version: '3.14'
django-version: '5.1'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -44,7 +38,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
Expand All @@ -65,6 +59,6 @@ jobs:
DRF: ${{ matrix.drf-version }}

- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
name: Python ${{ matrix.python-version }}
32 changes: 16 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.0.1'
rev: 'v5.0.0'
hooks:
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
hooks:
- id: ruff
types_or: [ python, pyi ]
args: [--select, I, --fix,]
files: "^tests/|^rest_framework_simplejwt/"
- id: ruff-format
types_or: [python, pyi]
files: "^tests/|^rest_framework_simplejwt/"
- repo: https://github.com/asottile/yesqa
rev: v1.2.3
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/pycqa/isort
rev: '5.9.3'
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: '21.9b0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.0.1'
rev: 'v5.0.0'
hooks:
- id: end-of-file-fixer
exclude: >-
Expand Down Expand Up @@ -48,12 +48,12 @@ repos:
- id: detect-private-key
exclude: ^tests/
- repo: https://github.com/asottile/pyupgrade
rev: 'v2.28.0'
rev: 'v3.20.0'
hooks:
- id: pyupgrade
args: ['--py37-plus', '--keep-mock']
args: ['--py39-plus', '--keep-mock']

- repo: git://github.com/Lucas-C/pre-commit-hooks-markup
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.1
hooks:
- id: rst-linter
Expand Down
8 changes: 5 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.12"

python:
install:
# Install dependencies from setup.py .
- method: setuptools
- method: pip
path: .
extra_requirements:
- dev

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
129 changes: 126 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,127 @@
## Unreleased
## 5.5.1

Missing Migration for rest_framework_simplejwt.token_blacklist app. A previously missing migration (0013_blacklist) has now been added. This issue arose because the migration file was mistakenly not generated earlier. This migration was never part of an official release, but users following the latest master branch may have encountered it.

**Notes for Users**
If you previously ran makemigrations in production and have a 0013_blacklist migration in your django_migrations table, follow these steps before upgrading:

1. Roll back to the last known migration:
```bash
python manage.py migrate rest_framework_simplejwt.token_blacklist 0012
```
2. Upgrade djangorestframework-simplejwt to the latest version.
3. Apply the migrations correctly:
```bash
python manage.py migrate
```
**Important**: If other migrations depend on 0013_blacklist, be cautious when removing it. You may need to adjust or regenerate dependent migrations to ensure database integrity.

* fix: add missing migration for token_blacklist app by @juanbailon in https://github.com/jazzband/djangorestframework-simplejwt/pull/894
* :globe_with_meridians: Fix typos and improve clarity in es_AR translations by @fabianfalon in https://github.com/jazzband/djangorestframework-simplejwt/pull/876
* docs: Add warning in docs for `for_user` usage by @vgrozdanic in https://github.com/jazzband/djangorestframework-simplejwt/pull/872
* feat: log warning if token is being created for inactive user by @vgrozdanic in https://github.com/jazzband/djangorestframework-simplejwt/pull/873
* ref: full tracebacks on exceptions by @vgrozdanic in https://github.com/jazzband/djangorestframework-simplejwt/pull/870
* #858 New i18n messages by @Cloves23 in https://github.com/jazzband/djangorestframework-simplejwt/pull/879
* Repair the type annotations in the TokenViewBase class. by @triplepoint in https://github.com/jazzband/djangorestframework-simplejwt/pull/880
* fix: Token.outstand forces users to install blacklist app by @Andrew-Chen-Wang in https://github.com/jazzband/djangorestframework-simplejwt/pull/884
* fix: PytestConfigWarning Unknown config option: python_paths by @vgrozdanic in https://github.com/jazzband/djangorestframework-simplejwt/pull/886
* fix: Do not copy `iat` claim from refresh token by @vgrozdanic in https://github.com/jazzband/djangorestframework-simplejwt/pull/888
* fix: add missing migration for token_blacklist app by @juanbailon in https://github.com/jazzband/djangorestframework-simplejwt/pull/894
* Update Persian translations (fa, fa_IR) for Django application by @mahdirahimi1999 in https://github.com/jazzband/djangorestframework-simplejwt/pull/897
* fix: always stringify user_id claim ([#887](https://github.com/jazzband/djangorestframework-simplejwt/pull/897))

## 5.5.0
* Cap PyJWT version to <2.10.0 to avoid incompatibility with subject claim type requirement by @grayver in https://github.com/jazzband/djangorestframework-simplejwt/pull/843
* Add specific "token expired" exceptions by @vainu-arto in https://github.com/jazzband/djangorestframework-simplejwt/pull/830
* Fix user_id type mismatch when user claim is not pk by @jdg-journeyfront in https://github.com/jazzband/djangorestframework-simplejwt/pull/851
* Caching signing key by @henryfool91 in https://github.com/jazzband/djangorestframework-simplejwt/pull/859
* Adds new refresh tokens to OutstandingToken db. by @thecarpetjasp in https://github.com/jazzband/djangorestframework-simplejwt/pull/866

## 5.4.0
* Changed string formatting in views by @Egor-oop in https://github.com/jazzband/djangorestframework-simplejwt/pull/750
* Enhance BlacklistMixin with Generic Type for Accurate Type Inference by @Dresdn in https://github.com/jazzband/djangorestframework-simplejwt/pull/768
* Improve type of `Token.for_user` to allow subclasses by @sterliakov in https://github.com/jazzband/djangorestframework-simplejwt/pull/776
* Fix the `Null` value of the `OutstandingToken` of the `BlacklistMixin.blacklist` by @JaeHyuckSa in https://github.com/jazzband/djangorestframework-simplejwt/pull/806
* Fix: Disable refresh token for inactive user. by @ajay09 in https://github.com/jazzband/djangorestframework-simplejwt/pull/814
* Add option to allow inactive user authentication and token generation by @zxkeyy in https://github.com/jazzband/djangorestframework-simplejwt/pull/834
* Drop Django <4.2, DRF <3.14, Python <3.9 by @Andrew-Chen-Wang in https://github.com/jazzband/djangorestframework-simplejwt/pull/839
* Note, many deprecated versions are only officially not supported but probably still work fine.
* Add support for EdDSA and other algorithms in jwt.algorithms.requires_cryptography (#822) https://github.com/jazzband/djangorestframework-simplejwt/pull/823

## 5.3.1

## What's Changed
* Remove EOL Python, Django and DRF version support by @KOliver94 in [#754](https://github.com/jazzband/djangorestframework-simplejwt/pull/754)
* Declare support for type checking (closes #664) by @PedroPerpetua in [#760](https://github.com/jazzband/djangorestframework-simplejwt/pull/760)
* Remove usages of deprecated datetime.utcnow() and datetime.utcfromtimestamp() in [#765](https://github.com/jazzband/djangorestframework-simplejwt/pull/765)

#### Translation Updates:
* Update Korean translations by @TGoddessana in https://github.com/jazzband/djangorestframework-simplejwt/pull/753

## 5.3.0

#### Notable Changes:
* Added support for Python 3.11 by @joshuadavidthomas [#636](https://github.com/jazzband/djangorestframework-simplejwt/pull/636)
* Added support for Django 4.2 by @johnthagen [#711](https://github.com/jazzband/djangorestframework-simplejwt/pull/711)
* Added support for DRF 3.14 by @Andrew-Chen-Wang [#623](https://github.com/jazzband/djangorestframework-simplejwt/pull/623)
* Added Inlang to facilitate community translations by @jannesblobel [#662](https://github.com/jazzband/djangorestframework-simplejwt/pull/662)
* Revoke access token if user password is changed by @mahdirahimi1999 [#719](https://github.com/jazzband/djangorestframework-simplejwt/pull/719)
* Added type hints by @abczzz13 [#683](https://github.com/jazzband/djangorestframework-simplejwt/pull/683)
* Improved testing by @kiraware [#688](https://github.com/jazzband/djangorestframework-simplejwt/pull/688)
* Removed support for Django 2.2 by @kiraware [#688](https://github.com/jazzband/djangorestframework-simplejwt/pull/688)

#### Documentation:
* Added write_only=True to TokenBlacklistSerializer's refresh field for better doc generation by @Yaser-Amiri [#699](https://github.com/jazzband/djangorestframework-simplejwt/pull/699)
* Updated docs on serializer customization by @2ykwang [#668](https://github.com/jazzband/djangorestframework-simplejwt/pull/668)

#### Translation Updates:
* Updated translations for Persian (fa) language by @mahdirahimi1999 [#723](https://github.com/jazzband/djangorestframework-simplejwt/pull/723) and https://github.com/jazzband/djangorestframework-simplejwt/pull/708
* Updated translations for Indonesian (id) language by @kiraware [#685](https://github.com/jazzband/djangorestframework-simplejwt/pull/685)
* Added Arabic language translations by @iamjazzar [#690](https://github.com/jazzband/djangorestframework-simplejwt/pull/690)
* Added Hebrew language translations by @elam91 [#679](https://github.com/jazzband/djangorestframework-simplejwt/pull/679)
* Added Slovenian language translations by @banDeveloper [#645](https://github.com/jazzband/djangorestframework-simplejwt/pull/645)

## Version 5.2.2

Major security release

* Revert #605 [#629](https://github.com/jazzband/djangorestframework-simplejwt/pull/629)
* Fix typo in blacklist_app.rst by @cbscsm [#593](https://github.com/jazzband/djangorestframework-simplejwt/pull/593)

## Version 5.2.1

* Add Swedish translations by @PasinduPrabhashitha [#579](https://github.com/jazzband/djangorestframework-simplejwt/pull/579)
* Fixed issue #543 by @armenak-baburyan [#586](https://github.com/jazzband/djangorestframework-simplejwt/pull/586)
* Fix uncaught exception with JWK by @jerr0328 [#600](https://github.com/jazzband/djangorestframework-simplejwt/pull/600)
* Test on Django 4.1 by @2ykwang [#604](https://github.com/jazzband/djangorestframework-simplejwt/pull/604)

## Version 5.2.0

* Remove the JWTTokenUserAuthentication from the Experimental Features #546 by @byrpatrick [#547](https://github.com/jazzband/djangorestframework-simplejwt/pull/547)
* Fix leeway type error by @2ykwang [#554](https://github.com/jazzband/djangorestframework-simplejwt/pull/554)
* Add info on TokenBlacklistView to the docs by @inti7ary [#558](https://github.com/jazzband/djangorestframework-simplejwt/pull/558)
* Update JWTStatelessUserAuthentication docs by @2ykwang [#561](https://github.com/jazzband/djangorestframework-simplejwt/pull/561)
* Allow none jti claim token type claim by @denniskeends [#567](https://github.com/jazzband/djangorestframework-simplejwt/pull/567)
* Allow customizing token JSON encoding by @vainu-arto [#568](https://github.com/jazzband/djangorestframework-simplejwt/pull/568)

## Version 5.1.0

* Add back support for PyJWT 1.7.1 ([#536](https://github.com/jazzband/djangorestframework-simplejwt/pull/536))
* Make the token serializer configurable ([#521](https://github.com/jazzband/djangorestframework-simplejwt/pull/521))
* Simplify using custom token classes in serializers ([#517](https://github.com/jazzband/djangorestframework-simplejwt/pull/517))
* Fix default_app_config deprecation ([#415](https://github.com/jazzband/djangorestframework-simplejwt/pull/415))
* Add missing integration instructions for drf-yasg ([#505](https://github.com/jazzband/djangorestframework-simplejwt/pull/505))
* Add blacklist view to log out users ([#306](https://github.com/jazzband/djangorestframework-simplejwt/pull/306))
* Set default verifying key to empty str ([#487](https://github.com/jazzband/djangorestframework-simplejwt/pull/487))
* Add docs about TOKEN_USER_CLASS ([#455](https://github.com/jazzband/djangorestframework-simplejwt/pull/440))

Meta:
* Add auto locale updater ([#456](https://github.com/jazzband/djangorestframework-simplejwt/pull/456))

Translations:

* Added Korean translations ([#501](https://github.com/jazzband/djangorestframework-simplejwt/pull/501))
* Added Turkish translations ([#508](https://github.com/jazzband/djangorestframework-simplejwt/pull/508))

## Version 5.0.0

Expand All @@ -12,8 +135,7 @@
* Updated import list ([#459](https://github.com/jazzband/djangorestframework-simplejwt/pull/459))
* Repair generation of OpenAPI with Spectacular ([#452](https://github.com/jazzband/djangorestframework-simplejwt/pull/452))
* Add "iat" claim to token ([#192](https://github.com/jazzband/djangorestframework-simplejwt/pull/192))
* Add blacklist view to log out users ([#306](https://github.com/jazzband/djangorestframework-simplejwt/pull/306))
* updated import list in docs ([#459](https://github.com/jazzband/djangorestframework-simplejwt/pull/459))
* Add blacklist view to log out users ([#306](https://github.com/jazzband/djangorestframework-simplejwt/pull/306))

## Version 4.8.0

Expand All @@ -36,6 +158,7 @@
* Fix invalid syntax in docs for `INSTALLED_APPS` ([#416](https://github.com/jazzband/django-rest-framework-simplejwt/pull/416))

Translations:

* Added Dutch translations ([#422](https://github.com/jazzband/django-rest-framework-simplejwt/pull/422))
* Added Ukrainian translations ([#423](https://github.com/jazzband/django-rest-framework-simplejwt/pull/423))
* Added Simplified Chinese translations ([#427](https://github.com/jazzband/django-rest-framework-simplejwt/pull/427))
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.rst
include LICENSE.txt
include rest_framework_simplejwt/py.typed
recursive-include rest_framework_simplejwt/locale *.mo
recursive-include rest_framework_simplejwt/locale *.po
recursive-exclude * __pycache__
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ build-docs:
tests/* \
rest_framework_simplejwt/token_blacklist/* \
rest_framework_simplejwt/backends.py \
rest_framework_simplejwt/compat.py \
rest_framework_simplejwt/exceptions.py \
rest_framework_simplejwt/settings.py \
rest_framework_simplejwt/state.py
Expand Down
Loading