{"record":{"id":"26ee9ef3c3f80a84","repo":"BerriAI/litellm","slug":"premium-user","errorCode":"premium_user","errorMessage":"You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://enterprise.litellm.ai/demo You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this","messagePattern":"You must be a LiteLLM Enterprise user to use SSO\\. If you have a license please set `LITELLM_LICENSE` in your env\\. If you want to obtain a license meet with us here: https://enterprise\\.litellm\\.ai/demo You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env\\. Please unset this","errorType":"exception","errorClass":"ProxyException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":4579,"sourceCode":"\n\n@router.get(\"/sso/debug/login\", tags=[\"experimental\"], include_in_schema=False)\nasync def debug_sso_login(request: Request):\n    \"\"\"\n    Create Proxy API Keys using Google Workspace SSO. Requires setting PROXY_BASE_URL in .env\n    PROXY_BASE_URL should be the your deployed proxy endpoint, e.g. PROXY_BASE_URL=\"https://litellm-production-7002.up.railway.app/\"\n    Example:\n    \"\"\"\n    from litellm.proxy.proxy_server import premium_user\n\n    microsoft_client_id: Final = os.getenv(\"MICROSOFT_CLIENT_ID\", None)\n    google_client_id: Final = os.getenv(\"GOOGLE_CLIENT_ID\", None)\n    generic_client_id: Final = os.getenv(\"GENERIC_CLIENT_ID\", None)\n\n    ####### Check if user is a Enterprise / Premium User #######\n    if microsoft_client_id is not None or google_client_id is not None or generic_client_id is not None:\n        if premium_user is not True:\n            raise ProxyException(\n                message=\"You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://enterprise.litellm.ai/demo You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this\",\n                type=ProxyErrorTypes.auth_error,\n                param=\"premium_user\",\n                code=status.HTTP_403_FORBIDDEN,\n            )\n\n    # get url from request\n    redirect_url: Final = SSOAuthenticationHandler.get_redirect_url_for_sso(\n        request=request,\n        sso_callback_route=\"sso/debug/callback\",\n    )\n\n    # Check if we should use SSO handler\n    if (\n        SSOAuthenticationHandler.should_use_sso_handler(\n            microsoft_client_id=microsoft_client_id,\n            google_client_id=google_client_id,\n            generic_client_id=generic_client_id,","sourceCodeStart":4561,"sourceCodeEnd":4597,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L4561-L4597","documentation":"Error \"You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://enterprise.litellm.ai/demo You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:4579 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE to a valid Enterprise license, or unset MICROSOFT_CLIENT_ID/GOOGLE_CLIENT_ID/GENERIC_CLIENT_ID."],"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-14T05:17:10.506Z"}