{"record":{"id":"38713573d56f8984","repo":"BerriAI/litellm","slug":"google-client-secret-not-set-set-it-in-env-file","errorCode":null,"errorMessage":"GOOGLE_CLIENT_SECRET not set. Set it in .env file","messagePattern":"GOOGLE_CLIENT_SECRET not set\\. Set it in \\.env file","errorType":"http","errorClass":"ProxyException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":2875,"sourceCode":"\n        Args:\n            redirect_url (str): The URL to redirect the user to after login\n            google_client_id (Optional[str], optional): The Google Client ID. Defaults to None.\n            microsoft_client_id (Optional[str], optional): The Microsoft Client ID. Defaults to None.\n            generic_client_id (Optional[str], optional): The Generic Client ID. Defaults to None.\n            request: Optional FastAPI request, used to drive the ``Secure``\n                attribute on the ``litellm_oauth_state`` CSRF cookie.\n\n        Returns:\n            RedirectResponse: The redirect response from the SSO provider.\n        \"\"\"\n        # Google SSO Auth\n        if google_client_id is not None:\n            from fastapi_sso.sso.google import GoogleSSO\n\n            google_client_secret: Final = os.getenv(\"GOOGLE_CLIENT_SECRET\", None)\n            if google_client_secret is None:\n                raise ProxyException(\n                    message=\"GOOGLE_CLIENT_SECRET not set. Set it in .env file\",\n                    type=ProxyErrorTypes.auth_error,\n                    param=\"GOOGLE_CLIENT_SECRET\",\n                    code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n                )\n            google_sso: Final = GoogleSSO(\n                client_id=google_client_id,\n                client_secret=google_client_secret,\n                redirect_uri=redirect_url,\n            )\n            verbose_proxy_logger.info(\n                \"In /google-login/key/generate, \\nGOOGLE_REDIRECT_URI: %s\\nGOOGLE_CLIENT_ID: %s\",\n                redirect_url,\n                google_client_id,\n            )\n            with google_sso:\n                return await google_sso.get_login_redirect(state=state)\n        # Microsoft SSO Auth","sourceCodeStart":2857,"sourceCodeEnd":2893,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L2857-L2893","documentation":"Error \"GOOGLE_CLIENT_SECRET not set. Set it in .env file\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:2875 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set GOOGLE_CLIENT_SECRET in the .env file and restart the proxy."],"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"}