LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_proxy_configgcp_auth
Function●Since v0.8

gcp_auth

Copy
gcp_auth(
  *,
  service_account_json: SandboxProxySecret,
  scopes: Sequence[str] | None = 

Used in Docs

  • Sandbox auth proxy
View source on GitHub
None
,
name
:
str
=
'gcp'
,
enabled
:
bool
=
True
)
->
SandboxProxyRule

Build a sandbox proxy rule that injects GCP OAuth bearer auth.

The sandbox proxy keeps the service account JSON outside the sandbox and injects OAuth bearer tokens for built-in Google API host matching. service_account_json must be supplied as a workspace_secret or opaque value; plaintext service account JSON is intentionally not supported.