Update shibboleth_config.md

This commit is contained in:
lian 2021-05-26 17:47:48 +08:00 committed by GitHub
parent 0ddcdc0b8c
commit 463cc4b981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,10 +118,17 @@ Add the following configuration to seahub_settings.py.
EXTRA_AUTHENTICATION_BACKENDS = (
'shibboleth.backends.ShibbolethRemoteUserBackend',
)
# for 7.1 and below
EXTRA_MIDDLEWARE_CLASSES = (
'shibboleth.middleware.ShibbolethRemoteUserMiddleware',
)
# for 8.0 and above
EXTRA_MIDDLEWARE = (
'shibboleth.middleware.ShibbolethRemoteUserMiddleware',
)
ENABLE_SHIB_LOGIN = True
SHIBBOLETH_ATTRIBUTE_MAP = {