add cas CAS_USERNAME_ATTRIBUTE CAS_RENAME_ATTRIBUTES CAS_CREATE_USER read

pull/6400/head
Tommy.chen 3 years ago committed by Jiangjie.Bai
parent c532c361c0
commit b1032761c8

@ -212,6 +212,10 @@ class Config(dict):
'CAS_ROOT_PROXIED_AS': '',
'CAS_LOGOUT_COMPLETELY': True,
'CAS_VERSION': 3,
'CAS_USERNAME_ATTRIBUTE': 'username',
'CAS_RENAME_ATTRIBUTES': {},
'CAS_CREATE_USER': False,
'AUTH_SSO': False,
'AUTH_SSO_AUTHKEY_TTL': 60 * 15,

@ -96,6 +96,9 @@ CAS_LOGOUT_COMPLETELY = CONFIG.CAS_LOGOUT_COMPLETELY
CAS_VERSION = CONFIG.CAS_VERSION
CAS_ROOT_PROXIED_AS = CONFIG.CAS_ROOT_PROXIED_AS
CAS_CHECK_NEXT = lambda _next_page: True
CAS_USERNAME_ATTRIBUTE = CONFIG.CAS_USERNAME_ATTRIBUTE
CAS_RENAME_ATTRIBUTES = CONFIG.CAS_RENAME_ATTRIBUTES if hasattr(CONFIG, 'CAS_RENAME_ATTRIBUTES') else {}
CAS_CREATE_USER = CONFIG.CAS_CREATE_USER
# SSO Auth
AUTH_SSO = CONFIG.AUTH_SSO

Loading…
Cancel
Save