Changelog
v1.0.0
Note
If in your urls.py
you have a url pattern with include("durin.urls"))
, then
2 new URL paths apiaccess/
and sessions/
will get added
to your project if you upgrade to this version.
If you do not wish to have these new views, remove the above include statement and refer to durin/urls.py on how to define the URL patterns selectively for the views you want.
Features:
Session Management serializers and views. (Issue 19)
- Refer to Session-Management-Views i.e.,
REST view for an authenticated user to get list of sessions (in context of django-rest-durin, this means
AuthToken
instances) and revoke a session. Useful for pages like “View active browser sessions”.REST view for an authenticated user to get/create/delete token against a pre-defined client. Useful for pages like “Get API key” where a user can get an API key to be able to interact directly with your project’s RESTful API using cURL or a custom client.
v0.4.0
Breaking Changes:
Remove the hard-coding of
authentication_classes
,permission_classes
variables in Views (durin.views). Meaning they will now use the defaults set underREST_FRAMEWORK
insettings.py
.
Other:
Support for Python 3.10. Enable CI tests for same.
Support for Django 4.0. Enable CI tests for same.
v0.3.0
Features:
AUTHTOKEN_SELECT_RELATED_LIST setting to enable performance optimization. (Issue 16)
Other:
More advanced use-cases in example_project/permissions.py.
Test cases now cover the Permissions (durin.permissions).
v0.2.0
Breaking Changes:
Replace
django-memoize
withdjango-cache-memoize
package. Refer to updateddurin.auth.CachedTokenAuthentication
. (Issue 13)Update arguments passed to durin’s signals and remove
providing_args
argument (Django deprecation notice). Please see updated Signals (durin.signals).The
get_client_obj
,get_token_obj
andrenew_token
member methods ofdurin.views.LoginView
are no longerstaticmethod
orclassmethod
.
Features:
durin.throttling.UserClientRateThrottle
throttle class. (Issue 9)ClientSettings
model in example_project. (Issue 14)renew_token
method ondurin.views.RefreshView
to enable easier extensibility.
Bug Fixes:
Fix bug in
AuthTokenAdminView
(“save and continue editing” button was not working).Exception handling was missing in
get_client_obj
member method ofdurin.views.LoginView
.
Other:
Enable CI tests for Django 3.2.
Better document
models.py
and categorize modules in documentation.