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
AuthTokeninstances) 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_classesvariables in Views (durin.views). Meaning they will now use the defaults set underREST_FRAMEWORKinsettings.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-memoizewithdjango-cache-memoizepackage. Refer to updateddurin.auth.CachedTokenAuthentication. (Issue 13)Update arguments passed to durin’s signals and remove
providing_argsargument (Django deprecation notice). Please see updated Signals (durin.signals).The
get_client_obj,get_token_objandrenew_tokenmember methods ofdurin.views.LoginVieware no longerstaticmethodorclassmethod.
Features:
durin.throttling.UserClientRateThrottlethrottle class. (Issue 9)ClientSettingsmodel in example_project. (Issue 14)renew_tokenmethod ondurin.views.RefreshViewto enable easier extensibility.
Bug Fixes:
Fix bug in
AuthTokenAdminView(“save and continue editing” button was not working).Exception handling was missing in
get_client_objmember method ofdurin.views.LoginView.
Other:
Enable CI tests for Django 3.2.
Better document
models.pyand categorize modules in documentation.