'dashboard sso setup saml2']:
return -errno.ENOSYS, '', ''
+ if cmd['prefix'] == 'dashboard sso disable':
+ mgr.SSO_DB.protocol = ''
+ mgr.SSO_DB.save()
+ return 0, 'SSO is "disabled".', ''
+
if not python_saml_imported:
return -errno.EPERM, '', 'Required library not found: `python3-saml`'
mgr.SSO_DB.save()
return 0, 'SSO is "enabled" with "SAML2" protocol.', ''
- if cmd['prefix'] == 'dashboard sso disable':
- mgr.SSO_DB.protocol = ''
- mgr.SSO_DB.save()
- return 0, 'SSO is "disabled".', ''
-
if cmd['prefix'] == 'dashboard sso status':
if mgr.SSO_DB.protocol == 'saml2':
return 0, 'SSO is "enabled" with "SAML2" protocol.', ''