Skip to content

Commit 655e803

Browse files
authored
#7157: Fix RemoteUserAuthentication calling django authenticate with request argument (#7158)
1 parent 96001c5 commit 655e803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,6 @@ class RemoteUserAuthentication(BaseAuthentication):
227227
header = "REMOTE_USER"
228228

229229
def authenticate(self, request):
230-
user = authenticate(remote_user=request.META.get(self.header))
230+
user = authenticate(request=request, remote_user=request.META.get(self.header))
231231
if user and user.is_active:
232232
return (user, None)

0 commit comments

Comments
 (0)