From 3ff543c33424825f60aeb49b137fef19bca717af Mon Sep 17 00:00:00 2001 From: Peter Uittenbroek Date: Thu, 23 Jan 2020 16:50:31 +0100 Subject: [PATCH] #7157: Fix RemoteUserAuthentication calling django authenticate with request argument --- rest_framework/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 1e30728d3..1dfc23d7f 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -220,6 +220,6 @@ class RemoteUserAuthentication(BaseAuthentication): header = "REMOTE_USER" def authenticate(self, request): - user = authenticate(remote_user=request.META.get(self.header)) + user = authenticate(request=request, remote_user=request.META.get(self.header)) if user and user.is_active: return (user, None)