Skip to main content
A workload on Google Cloud can get a Google-signed identity token for its service account from the metadata server. Dodo Payments trusts this token through a gcp provider.

Provider Settings

Required Claims

The mapping must pin sub with the numeric unique id of the service account. Do not use the email of the service account. To find the unique id, run:

Get the Token

Cloud Run, Compute Engine, and GKE with Workload Identity have a metadata server. The gcp() helper requests the token from it with the Dodo Payments audience. To get the token yourself:

SDK Usage

Set DODO_PAYMENTS_IDENTITY_PROVIDER_ID on the Cloud Run service or the instance:
The SDK refreshes the Dodo token before it expires, thus a long-running service needs no stored secret. Refer to SDK Usage for the other languages.
Last modified on October 28, 2026