BerriAI/litellm · error · HTTPException

SSO authentication failed - no result returned from provider

Error message

SSO authentication failed - no result returned from provider

What it means

Error "SSO authentication failed - no result returned from provider" thrown in BerriAI/litellm.

Source

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

):
    """CLI SSO callback - stores session info for JWT generation on polling"""
    verbose_proxy_logger.info("CLI SSO callback")

    from litellm.proxy.proxy_server import (
        cli_sso_session_cache,
        general_settings,
        prisma_client,
        proxy_logging_obj,
        user_api_key_cache,
    )

    flow: Final = _get_cli_sso_flow_or_raise(login_id=key, cache=cli_sso_session_cache)

    if prisma_client is None:
        raise HTTPException(status_code=500, detail=CommonProxyErrors.db_not_connected_error.value)

    if result is None:
        raise HTTPException(
            status_code=500,
            detail="SSO authentication failed - no result returned from provider",
        )

    # After None check, cast to non-None type for type checker
    result_non_none: Final[OpenID | dict] = cast(OpenID | dict, result)

    try:
        parsed_openid_result: Final = SSOAuthenticationHandler._get_user_email_and_id_from_result(
            result=result_non_none,
            generic_client_id=os.getenv("GENERIC_CLIENT_ID", None),
        )
        verbose_proxy_logger.debug("parsed_openid_result: %s", parsed_openid_result)
        user_defined_values: Final = await _build_cli_sso_user_defined_values(
            result=result_non_none,
            parsed_openid_result=parsed_openid_result,
        )

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Retry the SSO login; check the provider configuration and proxy logs for why no result was returned.

When it happens

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

Common situations: See trigger scenarios.

Understand the failure class


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