{"record":{"id":"12b9524fb2c84b6e","repo":"BerriAI/litellm","slug":"result-not-returned-by-sso-provider","errorCode":null,"errorMessage":"Result not returned by SSO provider.","messagePattern":"Result not returned by SSO provider\\.","errorType":"http","errorClass":"HTTPException","httpStatus":401,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":2058,"sourceCode":"            redirect_url=redirect_url,\n        )\n\n    elif generic_client_id is not None:\n        (\n            result,\n            received_response,\n            access_token_payload,\n            sso_assertion,\n        ) = await get_generic_sso_response(\n            request=request,\n            jwt_handler=jwt_handler,\n            generic_client_id=generic_client_id,\n            redirect_url=redirect_url,\n            sso_jwt_handler=sso_jwt_handler,\n        )\n\n    if result is None:\n        raise HTTPException(\n            status_code=401,\n            detail=\"Result not returned by SSO provider.\",\n        )\n\n    if state and state.startswith(f\"{LITELLM_CLI_SESSION_TOKEN_PREFIX}:\"):\n        # State format: {PREFIX}:{login_id}[:{user_code}]\n        state_parts: Final = state.split(\":\", 2)\n        key_id: Final = state_parts[1] if len(state_parts) > 1 else None\n        prefill_user_code: Final = state_parts[2] if len(state_parts) > 2 else None\n\n        verbose_proxy_logger.info(\"CLI SSO callback detected\")\n        return await cli_sso_callback(\n            request=request,\n            key=key_id,\n            prefill_user_code=prefill_user_code,\n            result=result,\n            received_response=received_response,\n            sso_assertion=sso_assertion,","sourceCodeStart":2040,"sourceCodeEnd":2076,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L2040-L2076","documentation":"Error \"Result not returned by SSO provider.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:2058 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the SSO login; check that the provider returned a result and the proxy logs for upstream errors."],"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"}