- Remove EOL Python, Django and DRF version support by @KOliver94 in #754
- Declare support for type checking (closes #664) by @PedroPerpetua in #760
- Remove usages of deprecated datetime.utcnow() and datetime.utcfromtimestamp() in #765
- Update Korean translations by @TGoddessana in #753
- Added support for Python 3.11 by @joshuadavidthomas #636
- Added support for Django 4.2 by @johnthagen #711
- Added support for DRF 3.14 by @Andrew-Chen-Wang #623
- Added Inlang to facilitate community translations by @jannesblobel #662
- Revoke access token if user password is changed by @mahdirahimi1999 #719
- Added type hints by @abczzz13 #683
- Improved testing by @kiraware #688
- Removed support for Django 2.2 by @kiraware #688
- Added write_only=True to TokenBlacklistSerializer's refresh field for better doc generation by @Yaser-Amiri #699
- Updated docs on serializer customization by @2ykwang #668
- Updated translations for Persian (fa) language by @mahdirahimi1999 #723 and #708
- Updated translations for Indonesian (id) language by @kiraware #685
- Added Arabic language translations by @iamjazzar #690
- Added Hebrew language translations by @elam91 #679
- Added Slovenian language translations by @banDeveloper #645
Major security release
- Add Swedish translations by @PasinduPrabhashitha #579
- Fixed issue #543 by @armenak-baburyan #586
- Fix uncaught exception with JWK by @jerr0328 #600
- Test on Django 4.1 by @2ykwang #604
- Remove the JWTTokenUserAuthentication from the Experimental Features #546 by @byrpatrick #547
- Fix leeway type error by @2ykwang #554
- Add info on TokenBlacklistView to the docs by @inti7ary #558
- Update JWTStatelessUserAuthentication docs by @2ykwang #561
- Allow none jti claim token type claim by @denniskeends #567
- Allow customizing token JSON encoding by @vainu-arto #568
- Add back support for PyJWT 1.7.1 (#536)
- Make the token serializer configurable (#521)
- Simplify using custom token classes in serializers (#517)
- Fix default_app_config deprecation (#415)
- Add missing integration instructions for drf-yasg (#505)
- Add blacklist view to log out users (#306)
- Set default verifying key to empty str (#487)
- Add docs about TOKEN_USER_CLASS (#455)
Meta:
- Add auto locale updater (#456)
Translations:
- Set BLACKLIST_AFTER_ROTATION by default to False (#455)
- Remove verify from jwt.decode to follow PyJWT v2.2.0 (#472)
- Updated import list (#459)
- Repair generation of OpenAPI with Spectacular (#452)
- Add "iat" claim to token (#192)
- Add blacklist view to log out users (#306)
- Add integration instructions for drf-yasg (#145)
- Verify Serializer Should Honour Blacklist (#239)
- Added missing import in getting_started docs (#431)
- Use import_string for token_backend (#435)
- Add JWKS support (#437)
- Use pathlib instead of open in setup.py (#339)
- Optimize default_user_authentication_rule (#441)
- Add Leeway option to decode (#445)
- Fix BrowsableAPIRenderer needing
media_type
(#426) - Fix blacklist migrations for multiple databases (#429)
- Fix Django 3.2
default_app_config
deprecation (#415) - Fix docs specifying
INSTALLED_APPS
for SimpleJWT iff you want translations (#420) - Fix drf-yasg API Schema generation for
TokenRefreshSerializer
(#396) - Fix invalid syntax in docs for
INSTALLED_APPS
(#416)
Translations:
- Added Dutch translations (#422)
- Added Ukrainian translations (#423)
- Added Simplified Chinese translations (#427)
- Fixed user-generated migration file bug in token_blacklist (#411)
- Added support for Django 3.2 and drop Django 3.0 (#404)
- Added Italian translations (#342)
- Fixed DRF app registry bug, specifically
django.core.exceptions.AppRegistryNotReady
(#331) - Fixed support for PyJWT>=2.0.0 (#376)
- Migrated blacklist app models to use BigAutoField IDs for Django>=3.2. (#404)
- Added support for PyJWT>=2.0.0 (#329)
- Restored Python 3.7 support (#332)
- Fixed Django 4.0 re_path deprecation (#280)
Translations:
- Added Indonesian translations (#316)
- Added
AUTH_HEADER_NAME
to settings (#309) - Added
USER_AUTHENTICATION_RULE
to settings (#279) - Added
UPDATE_LAST_LOGIN
to settings (#238) - Fixed packaging of locale folder for installation (#117)
- Allowed TokenUser to be configurable (#172)
- Dropped Python 3.7 and below (restored Python 3.7 but not 3.6 in next version)
- Improved error message if cryptography isn't installed when developer tries to use a certain algorithm that needs the package (#285)
- Fixed Django 4.0 ugettext_lazy deprecation warnings (#186)
- Remove upper bound of Python version (#225)
- Added DRF 3.11 support (#230)
Translations:
- Added French translations (#314)
- Added Spanish translations (#294)
- Added Argentinian Spanish translations (#244)
- Added Persian translations (#220)
- Added German translations (#198)
- Added Czech translations (#188)
- Added Polish translations (#166)
- Fixed incorrect language encoding from de_CH to es_CL (#299)
- Added official support for Python 3.8 and Django 3.0.
- Added settings for expected audience and issuer claims.
- Documentation updates.
- Updated package/python version support (check the README to see what new versions are supported and what old ones are no longer supported!)
- Added Chilean Spanish language support.
- Added Russian language support.
- Added
JTI_CLAIM
setting to allow storing token identifiers under a different claim.
- We now return HTTP 401 for user not found or inactive.
- Restricted
setup.py
config to Python 3 only.
- Included translation files in release package.
- Updated
python-jose
version requirement.
- Fixed
KeyError
inTokenObtainSerializer.validate
.
- Added request pass-through on
django.contrib.auth.authenticate
call inTokenObtainSerializer
. - Updated
TokenObtainSerializer
to usefail
API from parent class.
- Added language support for Brazilian Portuguese.
- Added support for automatic username lookup in
TokenUser
.
- Removed Python 2 support.
- Fixed crash when empty AUTHORIZATION header is sent.
- Fixed testing DB transaction issues.
- Simplified/improved testing and dev setup.
- Switched to using bumpversion for release process.
- Removed official support for Python 3.4.
- Added support for Python 3.7.
- Added support for Django 2.1.
- Added support for DRF 3.9.
- Fixed issue with
WWW-Authenticate
header not being included in 401 responses.
- Added missing method
get
onToken
base class.
- Simplified some blacklist app code.
- Resolved possible race condition.
- Added
TokenObtainSerializer.get_token
method to facilitate customization of token claims. - Added
TokenVerifyView
to allow verification of HMAC-signed tokens by API users who have no access to the signing key. - Renamed
AUTH_HEADER_TYPE
setting toAUTH_HEADER_TYPES
. This setting now contains either a single valid auth header type or a list or tuple of valid auth header types. If authentication fails, and more than one string is present in this tuple or list, the first item in the list will be used to build the "WWW-Authenticate" header in the response.
- Moved handling of TokenError exceptions from inside of serializer
validate
methods into token viewpost
methods.
- Added support for refresh token rotation via
ROTATE_REFRESH_TOKENS
andBLACKLIST_AFTER_ROTATION
settings. See README for details. - Added
BlacklistMixin.blacklist
method to make it easier to blacklist tokens regardless of whether or not they are present in the outstanding token list. - In token blacklist app, changed
OutstandingToken.jti
field to char field to better reflect JWT spec. - Renamed
AUTH_TOKEN_CLASS
setting toAUTH_TOKEN_CLASSES
. This setting now specifies a list of token classes (or class paths) which are used to verify tokens which are submitted for authorization. This will hopefully help anyone wishing to gradually migrate between using different token types. - Removed support for extensible JWT backends. We're just going to use PyJWT exclusively to simplify things.
- Added support for more crypto algorithms. All HMAC and RSA variants from PyJWT now supported.
- Renamed
SECRET_KEY
setting toSIGNING_KEY
. - The renamed
SIGNING_KEY
setting now acts doubly as a symmetric signing/verification key for HMAC algorithms and as a private key for RSA algorithms. - Added
VERIFYING_KEY
setting for use with RSA algorithms. - Removed undocumented
TOKEN_BACKEND_CLASS
setting.
- Switched to using PyJWT as the underlying library for signing and verifying tokens.