Hi everyone
My project uses two authentications ways for different users. Administrator users authenticate themselves with username and password (ModelBackend). Customers authenticate themselves with phonenumber and token (custom authentication backend).
My custom backend authentication backend never gets the credentials. It only works if I use username and password.
class CustomerBackend:
def authenticate(self, request, phonenumber=None, token=None, **kwargs):
print(phone_number)
print(token)
print(kwargs)
return None
It shows: