Skip to content

Commit

Permalink
#7157: Fix RemoteUserAuthentication calling django authenticate with …
Browse files Browse the repository at this point in the history
…request argument (#7158)
  • Loading branch information
puittenbroek authored Sep 3, 2021
1 parent 96001c5 commit 655e803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,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)

0 comments on commit 655e803

Please sign in to comment.