Token lifetime expiration #8774
Unanswered
cederom
asked this question in
Ideas & Suggestions
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello world and thank you for this amazing framework :-)
What I found missing and quite basic feature is the token lifetime expiration. That would for sure increase security. There is a
created
field, but expiration needs to be done by hand (i.e. like this [1]).. and that introduces local changes to authentication mechanism that could also imply security issues.My question is why there is no token expiration mechanism implemented in the upstream?
Are there any serious reasons against it?
The implementation could only use
settings
defined variable and delete expired token on first incoming request. If no expiration is required that variable could beNone
.Any hints welcome :-)
Tomek
[1] https://medium.com/@yerkebulan199/django-rest-framework-drf-token-authentication-with-expires-in-a05c1d2b7e05
Beta Was this translation helpful? Give feedback.
All reactions