feature.ts 921 B

12345678910111213141516171819202122232425262728293031
  1. export enum SSOProtocol {
  2. SAML = 'saml',
  3. OIDC = 'oidc',
  4. OAuth2 = 'oauth2',
  5. }
  6. export type SystemFeatures = {
  7. sso_enforced_for_signin: boolean
  8. sso_enforced_for_signin_protocol: SSOProtocol | ''
  9. sso_enforced_for_web: boolean
  10. sso_enforced_for_web_protocol: SSOProtocol | ''
  11. enable_web_sso_switch_component: boolean
  12. enable_email_code_login: boolean
  13. enable_email_password_login: boolean
  14. enable_social_oauth_login: boolean
  15. is_allow_create_workspace: boolean
  16. is_allow_register: boolean
  17. }
  18. export const defaultSystemFeatures: SystemFeatures = {
  19. sso_enforced_for_signin: false,
  20. sso_enforced_for_signin_protocol: '',
  21. sso_enforced_for_web: false,
  22. sso_enforced_for_web_protocol: '',
  23. enable_web_sso_switch_component: false,
  24. enable_email_code_login: false,
  25. enable_email_password_login: false,
  26. enable_social_oauth_login: false,
  27. is_allow_create_workspace: false,
  28. is_allow_register: false,
  29. }