{"record":{"id":"6edc969be83de405","repo":"BerriAI/litellm","slug":"sso-authentication-failed-no-result-returned-fro","errorCode":null,"errorMessage":"SSO authentication failed - no result returned from provider","messagePattern":"SSO authentication failed - no result returned from provider","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":2359,"sourceCode":"):\n    \"\"\"CLI SSO callback - stores session info for JWT generation on polling\"\"\"\n    verbose_proxy_logger.info(\"CLI SSO callback\")\n\n    from litellm.proxy.proxy_server import (\n        cli_sso_session_cache,\n        general_settings,\n        prisma_client,\n        proxy_logging_obj,\n        user_api_key_cache,\n    )\n\n    flow: Final = _get_cli_sso_flow_or_raise(login_id=key, cache=cli_sso_session_cache)\n\n    if prisma_client is None:\n        raise HTTPException(status_code=500, detail=CommonProxyErrors.db_not_connected_error.value)\n\n    if result is None:\n        raise HTTPException(\n            status_code=500,\n            detail=\"SSO authentication failed - no result returned from provider\",\n        )\n\n    # After None check, cast to non-None type for type checker\n    result_non_none: Final[OpenID | dict] = cast(OpenID | dict, result)\n\n    try:\n        parsed_openid_result: Final = SSOAuthenticationHandler._get_user_email_and_id_from_result(\n            result=result_non_none,\n            generic_client_id=os.getenv(\"GENERIC_CLIENT_ID\", None),\n        )\n        verbose_proxy_logger.debug(\"parsed_openid_result: %s\", parsed_openid_result)\n        user_defined_values: Final = await _build_cli_sso_user_defined_values(\n            result=result_non_none,\n            parsed_openid_result=parsed_openid_result,\n        )\n","sourceCodeStart":2341,"sourceCodeEnd":2377,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L2341-L2377","documentation":"Error \"SSO authentication failed - no result returned from provider\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:2359 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the SSO login; check the provider configuration and proxy logs for why no result was returned."],"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"}