Skip to main content
A GitLab CI/CD job can get an ID token from GitLab. Dodo Payments trusts this token through a gitlab provider.

Provider Settings

Required Claims

The mapping must pin namespace_id or project_id with an exact numeric value.
Other useful claims are namespace_path, project_path, ref_type, pipeline_source, environment, and sub.

Job Configuration

Define an ID token with the Dodo Payments audience in .gitlab-ci.yml. GitLab sets it as an environment variable of the job.
The gitlab() helper reads DODO_PAYMENTS_ID_TOKEN. If you use a different variable name, give the name to the helper. Each job gets one ID token, and the token can do one exchange. A job that runs longer than the Dodo token lifetime cannot refresh with the same ID token.

SDK Usage

Refer to SDK Usage for the other languages.
Last modified on October 28, 2026