Is there a way to configure Django Rest Framework to store token information in Redis and not in a database?
1 answer
You can create your own custom authentication server that stores tokens in redis. From the documentation :
To implement a custom authentication scheme, subclass BaseAuthentication and override the .authenticate (self, request) method. The method should return binary (user, auth) if authentication succeeded, or None otherwise.
+3
source to share