fix: 修改CAS配置默认值

pull/6402/head
Bai 3 years ago committed by Jiangjie.Bai
parent b1032761c8
commit 1e601288fa

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

@ -97,7 +97,8 @@ 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_APPLY_ATTRIBUTES_TO_USER = CONFIG.CAS_APPLY_ATTRIBUTES_TO_USER
CAS_RENAME_ATTRIBUTES = CONFIG.CAS_RENAME_ATTRIBUTES
CAS_CREATE_USER = CONFIG.CAS_CREATE_USER
# SSO Auth

Loading…
Cancel
Save