{"record":{"id":"a3b086f6bbf7526a","repo":"BerriAI/litellm","slug":"enterprise-features-are-not-available-custom-ui-s","errorCode":null,"errorMessage":"Enterprise features are not available. Custom UI SSO sign-in requires LiteLLM Enterprise.","messagePattern":"Enterprise features are not available\\. Custom UI SSO sign-in requires LiteLLM Enterprise\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":1101,"sourceCode":"    # Store CLI login handle in state for OAuth flow\n    cli_state: Final[str | None] = SSOAuthenticationHandler._get_cli_state(\n        source=source,\n        key=key,\n        user_code=(user_code if _cli_sso_verification_uri_complete_enabled() else None),\n    )\n\n    # check if user defined a custom auth sso sign in handler, if yes, use it\n    if user_custom_ui_sso_sign_in_handler is not None:\n        try:\n            from litellm_enterprise.proxy.auth.custom_sso_handler import (\n                EnterpriseCustomSSOHandler,\n            )\n\n            return await EnterpriseCustomSSOHandler.handle_custom_ui_sso_sign_in(\n                request=request,\n            )\n        except ImportError:\n            raise ValueError(\n                \"Enterprise features are not available. Custom UI SSO sign-in requires LiteLLM Enterprise.\"\n            )\n\n    if (\n        microsoft_client_id is None\n        and google_client_id is None\n        and generic_client_id is None\n        and SAMLAuthHandler.is_saml_configured()\n    ):\n        verbose_proxy_logger.info(\"Redirecting to SAML SSO login\")\n        return await SAMLAuthHandler.build_login_redirect(\n            request=request,\n            cache=user_api_key_cache,\n            relay_state=return_to,\n        )\n\n    # Check if we should use SSO handler\n    if (","sourceCodeStart":1083,"sourceCodeEnd":1119,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L1083-L1119","documentation":"Error \"Enterprise features are not available. Custom UI SSO sign-in requires LiteLLM Enterprise.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:1101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE to a valid LiteLLM Enterprise license key to use custom UI SSO sign-in."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}