#7157: Fix RemoteUserAuthentication calling django authenticate with request argument (#7158)

This commit is contained in:
Peter Uittenbroek 2021-09-03 15:37:03 +02:00 committed by GitHub
parent 96001c5de6
commit 655e803adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)