From 7e54d9f28c08653237ce7b545d03142de799fbf0 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Thu, 29 Aug 2019 22:52:48 +0200 Subject: [PATCH] Use Email header from SSOWat --- sources/patches/x86-64-sso_auth.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/patches/x86-64-sso_auth.patch b/sources/patches/x86-64-sso_auth.patch index b9032d57..79288acc 100644 --- a/sources/patches/x86-64-sso_auth.patch +++ b/sources/patches/x86-64-sso_auth.patch @@ -14,7 +14,7 @@ diff -Naur a/seahub/seahub/auth/middleware.py b/seahub/seahub/auth/middleware.py " before the RemoteUserMiddleware class.") try: - username = request.META[self.header] -+ username = request.META["HTTP_REMOTE_USER"] + '@' + request.META["HTTP_HOST"] ++ username = request.META["HTTP_EMAIL"] except KeyError: # If specified header doesn't exist then return (leaving # request.user set to AnonymousUser by the