This repository was archived by the owner on May 26, 2020. It is now read-only.

Description
for some reason i want to use "request" in AUTHENTICATION_BACKENDS
but i got request as None
i need request because:
- shopping cart is in cookie before login
- shoping cart is in server after login
- i want to decorate anywhere when login ( logon 、login 、oauth2)
- in my decoration : i get user from request
- i write a new AUTHENTICATION_BACKENDS give User to request as user property
no request no user
just change you serializers line 50
from
user = authenticate(**credentials)
to
user = authenticate(self.context["request"] , **credentials)
thanks