When an agent identity certificate is available, ComputeEngineCredentials requests
certificate-bound ID tokens by default. A bound ID token is only accepted by targets that
authenticate the caller over mTLS with the same certificate. Pass this option for targets
that are called over standard (non-mTLS) HTTPS, for example a Cloud Run service reached
through its *.run.app URL or a custom domain.
Unlike the GOOGLE_API_ENABLE_RUNTIME_BOUND_TOKEN=false environment variable, which
globally disables certificate-bound access tokens and ID tokens across the entire process,
this option applies per call (or per IdTokenCredentials instance) and leaves access
tokens and other ID token requests bound. If this option is not set, the library decides
whether to bind the ID token. Currently, it is bound whenever an agent identity certificate
is available and token binding is not globally disabled by
GOOGLE_API_ENABLE_RUNTIME_BOUND_TOKEN=false.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-18 UTC."],[],[]]