Skip to content

Releases: jazzband/django-rest-knox

Compatibility with Python up to 3.10 and Django up to 4.0

31 Jan 15:26
c48493d
Compare
Choose a tag to compare
  • compatibility with Python up to 3.10 and Django up to 4.0
  • integration with github CI instead of travis
  • Migration: "salt" field of model "AuthToken" is removed

More options to customize: expiry datetime, response payload

01 Jun 06:25
Compare
Choose a tag to compare
  • Expiry format now defaults to whatever is used Django REST framework
  • The behavior can be overriden via EXPIRY_DATETIME_FORMAT setting
  • Fully customizable expiry format via format_expiry_datetime
  • Fully customizable response payload via get_post_response_data

Bug fix for tox CI

10 Apr 12:57
05f218f
Compare
Choose a tag to compare

Fix for tox config to build Django 2.2 on python 3.6

Major release (breaking changes!)

27 Mar 12:29
707f698
Compare
Choose a tag to compare

BREAKING This is a major release version because it breaks the existing API. Changes have been made to the create() method on the AuthToken model. It now returns the model instance and the raw token instead of just the token to allow the expiry field to be included in the success response.

Model field of AuthToken has been renamed from expires to expiry to remain consistent across the code base.

This patch requires you to run a migration and depending on your usage you might also have to adjust your code.

More flexibility II

31 Dec 11:58
c1972fc
Compare
Choose a tag to compare

adds user serializer hook

More flexibility

21 Dec 14:24
f77752b
Compare
Choose a tag to compare

The context, token TTL and tokens per user settings in LoginView are now dynamic

Releasing to pypi again!

12 Nov 05:28
Compare
Choose a tag to compare

Our release cycle was broken since 3.1.5, hence you can not find the previous releases on pypi. We now fixed the problem.

  • #129, #128 fixed
  • Adds optional token amount limit per user
  • Changelog and Readme converted to markdown
  • Auth header prefix is now configurable
  • We ensure not to have flake8 errors in our code during our build
  • MIN_REFRESH_INTERVAL is now a configurable setting

3.3.1 + skipped releases (3.2.0, 3.2.1, 3.3.0)

28 Sep 11:35
143094a
Compare
Choose a tag to compare

We skipped to release 3.2.0, 3.2.1 and 3.3.0 as we had problems publishing them to pypi.

3.3.1 has:

  • Django 2.1 and Python 3.7 compability
  • Signal "token_expired" gets emitted when old tokens are deleted

Refer to changelog for more info about the skipped releases.

Bugfix release

19 Aug 15:19
d844080
Compare
Choose a tag to compare

Fix for #111: knox should not fail if setting defaults are not overwritten

Allow extension of token expiry

31 Jul 07:24
5ace943
Compare
Choose a tag to compare

Introduce new setting AUTO_REFRESH for controlling if token expiry time should be extended automatically on requests within the current expiry period.