1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

Environment variable for shibboleth user name can be changed. The default is REMOTE_USER which is provided by e.g. apache modules.

This commit is contained in:
David Kreitschmann
2015-03-05 00:09:06 +01:00
parent b6f8935c0f
commit 0fddddf8d1
2 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ SHIB_ATTRIBUTE_MAP = getattr(settings, 'SHIBBOLETH_ATTRIBUTE_MAP', default_shib_
#Set to true if you are testing and want to insert sample headers.
SHIB_MOCK_HEADERS = getattr(settings, 'SHIBBOLETH_MOCK_HEADERS', False)
SHIB_USER_HEADER = getattr(settings, 'SHIBBOLETH_USER_HEADER', "REMOTE_USER")
LOGIN_URL = getattr(settings, 'LOGIN_URL', None)
if not LOGIN_URL: