Skip to content

Support Azure Pipelines OIDC #1803

Description

@elad-pticha

Description

By sending a POST request to $SYSTEM_OIDCREQUESTURI?api-version=7.1-preview.1 along with the following auth header Authorization: Bearer $SYSTEM_ACCESSTOKEN will return the following OIDC token:

{
  "jti": "UUID",
  "sub": "p://example/test-oidc/test-oidc",
  "aud": "api://AzureADTokenExchange",
  "org_id": "ORG_UUID",
  "prj_id": "PROJECT_UUID",
  "def_id": "PIPELINE_ID",
  "rpo_id": "REPO_UUID",
  "rpo_uri": "https://dev.azure.com/example/test-oidc/_git/test-oidc",
  "rpo_ver": "GIT_COMMIT",
  "rpo_ref": "refs/heads/main",
  "run_id": "BUILD_ID",
  "iss": "https://vstoken.dev.azure.com/ORG_UUID",
  "nbf": 1726042645,
  "exp": 1726043845,
  "iat": 1726043245
}

Docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions