{"record":{"id":"354dde100b437320","repo":"BerriAI/litellm","slug":"google-client-secret","errorCode":"GOOGLE_CLIENT_SECRET","errorMessage":"GOOGLE_CLIENT_SECRET not set. Set it in .env file","messagePattern":"GOOGLE_CLIENT_SECRET not set\\. Set it in \\.env file","errorType":"exception","errorClass":"ProxyException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":4537,"sourceCode":"\n    @staticmethod\n    async def get_google_callback_response(\n        request: Request,\n        google_client_id: str,\n        redirect_url: str,\n        return_raw_sso_response: bool = False,\n    ) -> OpenID | dict:\n        \"\"\"\n        Get the Google SSO callback response\n\n        Args:\n            return_raw_sso_response: If True, return the raw SSO response\n        \"\"\"\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            redirect_uri=redirect_url,\n            client_secret=google_client_secret,\n        )\n\n        # if user is trying to get the raw sso response for debugging, return the raw sso response\n        if return_raw_sso_response:\n            return (\n                await google_sso.verify_and_process(\n                    request=request,\n                    convert_response=False,\n                )","sourceCodeStart":4519,"sourceCodeEnd":4555,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L4519-L4555","documentation":"ProxyException raised in the Google SSO callback: GOOGLE_CLIENT_SECRET is not set in the environment, so the OAuth code exchange with Google cannot be completed. A proxy configuration error requiring the secret to be added to .env before Google login works.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:4537 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":"validation","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"}