mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
feat: saml2协议单点登录支持在页面上配置saml2协议的高级配置 (#7362)
This commit is contained in:
@@ -92,14 +92,11 @@ class PrepareRequestMixin:
|
||||
|
||||
@staticmethod
|
||||
def get_advanced_settings():
|
||||
other_settings = {}
|
||||
other_settings_path = settings.SAML2_OTHER_SETTINGS_PATH
|
||||
if os.path.exists(other_settings_path):
|
||||
with open(other_settings_path, 'r') as json_data:
|
||||
try:
|
||||
other_settings = json.loads(json_data.read())
|
||||
except Exception as error:
|
||||
logger.error('Get other settings error: %s', error)
|
||||
try:
|
||||
other_settings = dict(settings.SAML2_SP_ADVANCED_SETTINGS)
|
||||
except Exception as error:
|
||||
logger.error('Get other settings error: %s', error)
|
||||
other_settings = {}
|
||||
|
||||
default = {
|
||||
"organization": {
|
||||
|
Reference in New Issue
Block a user