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
Description
By sending a
POSTrequest to$SYSTEM_OIDCREQUESTURI?api-version=7.1-preview.1along with the following auth headerAuthorization: Bearer $SYSTEM_ACCESSTOKENwill 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