BerriAI/litellm · error · HTTPException

Result not returned by SSO provider.

Error message

Result not returned by SSO provider.

What it means

Error "Result not returned by SSO provider." thrown in BerriAI/litellm.

Source

Thrown at litellm/proxy/management_endpoints/ui_sso.py:2058

            redirect_url=redirect_url,
        )

    elif generic_client_id is not None:
        (
            result,
            received_response,
            access_token_payload,
            sso_assertion,
        ) = await get_generic_sso_response(
            request=request,
            jwt_handler=jwt_handler,
            generic_client_id=generic_client_id,
            redirect_url=redirect_url,
            sso_jwt_handler=sso_jwt_handler,
        )

    if result is None:
        raise HTTPException(
            status_code=401,
            detail="Result not returned by SSO provider.",
        )

    if state and state.startswith(f"{LITELLM_CLI_SESSION_TOKEN_PREFIX}:"):
        # State format: {PREFIX}:{login_id}[:{user_code}]
        state_parts: Final = state.split(":", 2)
        key_id: Final = state_parts[1] if len(state_parts) > 1 else None
        prefill_user_code: Final = state_parts[2] if len(state_parts) > 2 else None

        verbose_proxy_logger.info("CLI SSO callback detected")
        return await cli_sso_callback(
            request=request,
            key=key_id,
            prefill_user_code=prefill_user_code,
            result=result,
            received_response=received_response,
            sso_assertion=sso_assertion,

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Retry the SSO login; check that the provider returned a result and the proxy logs for upstream errors.

When it happens

Trigger: Thrown at litellm/proxy/management_endpoints/ui_sso.py:2058 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/12b9524fb2c84b6e. Report an issue: GitHub.