Why doesn't TokenAuthentication include a refresh token? #8455
-
I'm researching on types of authentication, I see most of the token-based solutions include a refresh token. As far as I understand, refresh token helps increase security by reducing the attack surface, by giving access token a short lifetime (which is passed around all the time), and refresh token a long one. So I'm a bit curious, is there a specific reason the authtoken module doesn't include a refresh token? Or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From what I understand, DRF's If you find this doesn't suit you, there are 3rd party packages available as alternatives. DRF suggested if you need additional functionality outside the features already implemented as a 3rd party package:
|
Beta Was this translation helpful? Give feedback.
From what I understand, DRF's
TokenAuthentication
is different from more popular token concepts such as OAuth token. Someone in #601 (comment) even said that the token is somewhat comparable to password. The issue isn't about refresh token, but it hinted at how theTokenAuthentication
differs from other popular token mechanisms.If you find this doesn't suit you, there are 3rd party packages available as alternatives.
DRF suggested if you need additional functionality outside the features already implemented as a 3rd party package: