forked from jazzband/django-rest-knox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jazzband#168 from James1345/develop
release 4.0
- Loading branch information
Showing
24 changed files
with
295 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[settings] | ||
combine_as_imports = true | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
known_first_party = knox | ||
multi_line_output = 5 | ||
not_skip = __init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,153 +1,122 @@ | ||
3.6.0 | ||
===== | ||
## 4.0.0 | ||
|
||
- The user serializer for each `LoginView`is now dynamic | ||
**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. | ||
|
||
3.5.0 | ||
===== | ||
Depending on your usage you might have to adjust your code | ||
to fit these new changes. | ||
|
||
- The context, token TTL and tokens per user settings in `LoginView` are now dynamic | ||
- `AuthToken` model field has been changed from `expires` to `expiry` | ||
- Successful login now always returns a `expiry` field for when the token expires | ||
|
||
## 3.6.0 | ||
|
||
- The user serializer for each `LoginView`is now dynamic | ||
|
||
3.4.0 | ||
===== | ||
## 3.5.0 | ||
|
||
- The context, token TTL and tokens per user settings in `LoginView` are now dynamic | ||
|
||
## 3.4.0 | ||
Our release cycle was broken since 3.1.5, hence you can not find the previous releases on pypi. We now fixed the problem. | ||
|
||
- Adds optional token limit | ||
- #129, #128 fixed | ||
- \#129, \#128 fixed | ||
- 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 | ||
- Ensure compatibility with Django 2.1 up to Python 3.7 | ||
|
||
3.3.1 | ||
===== | ||
|
||
- Ensure compatibility with Django 2.1 up to Python 3.7 | ||
|
||
3.3.0 | ||
===== | ||
## 3.3.0 | ||
|
||
- **Breaking changes**: Successful authentication **ONLY** returns | ||
`Token` object by default | ||
now.`USER_SERIALIZER` must be overridden to return more | ||
data. | ||
|
||
- Introduce new setting `MIN_REFRESH_INTERVAL` to configure the time | ||
interval (in seconds) to wait before a token is automatically refreshed. | ||
|
||
3.2.1 | ||
===== | ||
|
||
- Fix !111: Avoid knox failing if settings are not overwritten | ||
|
||
3.2.0 | ||
===== | ||
|
||
- Introduce new setting AUTO_REFRESH for controlling if token expiry | ||
time should be extended automatically | ||
|
||
3.1.5 | ||
===== | ||
|
||
- Make AuthTokenAdmin more compatible with big user tables | ||
- Extend docs regarding usage of Token Authentication as single | ||
authentication method. | ||
## 3.2.1 | ||
- Fix !111: Avoid knox failing if settings are not overwritten | ||
|
||
3.1.4 | ||
===== | ||
## 3.2.0 | ||
- Introduce new setting AUTO_REFRESH for controlling if token expiry time should be extended automatically | ||
|
||
- Fix compability with django-rest-swagger (bad inheritance) | ||
## 3.1.5 | ||
- Make AuthTokenAdmin more compatible with big user tables | ||
- Extend docs regarding usage of Token Authentication as single authentication method. | ||
|
||
3.1.3 | ||
===== | ||
## 3.1.4 | ||
- Fix compability with django-rest-swagger (bad inheritance) | ||
|
||
- Avoid 500 error response for invalid-length token requests | ||
## 3.1.3 | ||
- Avoid 500 error response for invalid-length token requests | ||
|
||
3.1.2 | ||
===== | ||
## 3.1.2 | ||
- restore compability with Python <2.7.7 | ||
|
||
- restore compability with Python <2.7.7 | ||
## 3.1.1 | ||
- use hmac.compare_digest instead of == for comparing hashes for more security | ||
|
||
3.1.1 | ||
===== | ||
## 3.1.0 | ||
- drop Django 1.8 support as djangorestframework did so too in v.3.7.0 | ||
- build rest-knox on Django 1.11 and 2.0 | ||
|
||
- use hmac.compare_digest instead of == for comparing hashes for more | ||
security | ||
## 3.0.3 | ||
- drop using OpenSSL in favor of urandom | ||
|
||
3.1.0 | ||
===== | ||
## 3.0.2 | ||
- Add context to UserSerializer | ||
- improve docs | ||
|
||
- drop Django 1.8 support as djangorestframework did so too in v.3.7.0 | ||
- build rest-knox on Django 1.11 and 2.0 | ||
## 3.0.1 | ||
- improved docs and readme | ||
- login response better supporting hyperlinked fields | ||
|
||
3.0.3 | ||
===== | ||
## 3.0.0 | ||
**Please be aware: updating to this version requires applying a database migration. All clients will need to reauthenticate.** | ||
|
||
- drop using OpenSSL in favor of urandom | ||
- Big performance fix: Introduction of token_key field to avoid having to compare a login request's token against each and every token in the database (issue #21) | ||
- increased test coverage | ||
|
||
3.0.2 | ||
===== | ||
## 2.2.2 | ||
- Bugfix: invalid token length does no longer trigger a server error | ||
- Extending documentation | ||
|
||
- Add context to UserSerializer | ||
- improve docs | ||
## 2.2.1 | ||
**Please be aware: updating to his version requires applying a database migration** | ||
|
||
3.0.1 | ||
===== | ||
|
||
- improved docs and readme | ||
- login response better supporting hyperlinked fields | ||
|
||
3.0.3 | ||
===== | ||
|
||
- drop using OpenSSL in favor of urandom | ||
|
||
3.0.2 | ||
===== | ||
|
||
- Add context to UserSerializer | ||
- improve docs | ||
|
||
3.0.1 | ||
===== | ||
|
||
- improved docs and readme | ||
- login response better supporting hyperlinked fields | ||
|
||
3.0.0 | ||
===== | ||
|
||
**Please be aware: updating to this version requires applying a database | ||
migration. All clients will need to reauthenticate.** | ||
|
||
- Big performance fix: Introduction of token_key field to avoid | ||
having to compare a login request's token against each and every | ||
token in the database (issue #21) | ||
- increased test coverage | ||
|
||
2.2.2 | ||
===== | ||
- Introducing token_key to avoid loop over all tokens on login-requests | ||
- Signals are sent on login/logout | ||
- Test for invalid token length | ||
- Cleanup in code and documentation | ||
|
||
- Bugfix: invalid token length does no longer trigger a server error | ||
- Extending documentation | ||
|
||
2.2.1 | ||
===== | ||
## 2.2.0 | ||
|
||
**Please be aware: updating to this version requires applying a database | ||
migration** | ||
- Change to support python 2.7 | ||
|
||
- Introducing token_key to avoid loop over all tokens on | ||
login-requests | ||
- Signals are sent on login/logout | ||
- Test for invalid token length | ||
- Cleanup in code and documentation | ||
## 2.0.0 | ||
- Hashing of tokens on the server introduced. | ||
- Updating to this version will clean the AuthToken table. In real terms, this | ||
means all users will be forced to log in again. | ||
|
||
2.2.0 | ||
===== | ||
## 1.1.0 | ||
- `LoginView` changed to respect `DEFAULT_AUTHENTICATION_CLASSES` | ||
|
||
- Change to support python 2.7 | ||
## 1.0.0 | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../CHANGELOG.md |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from django.contrib import admin | ||
|
||
from knox import models | ||
|
||
|
||
|
Oops, something went wrong.