Oidc ID Token
This contains APIs related to OIDC ID Token generation as defined in Harness
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC ID Token as a JWT
POST /gateway/ng/api/oidc/id-token/azure HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 706
{
"accountId": "text",
"tenantId": "text",
"clientId": "text",
"audience": "text",
"subject": "text",
"subscriptionId": "text",
"resourceGroup": "text",
"oidcIdTokenCustomAttributesStructure": {
"account_id": "text",
"organization_id": "text",
"project_id": "text",
"pipeline_id": "text",
"environment_id": "text",
"environment_type": "text",
"connector_id": "text",
"connector_name": "text",
"service_id": "text",
"service_name": "text",
"triggered_by_name": "text",
"trigger_by_email": "text",
"stage_type": "text",
"step_type": "text",
"context": "text",
"artifact_id": "text",
"artifact_type": "text",
"artifact_name": "text",
"artifact_digest": "text",
"tag": "text",
"step_execution_id": "text",
"delegate_selectors": "text"
},
"enhancedSubClaimFields": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This contains GCP OIDC Token request details
This specifies the Harness Account Id
This specifies the Workload Pool Id
This specifies the OIDC ID Provider
This specifies the GCP Project Id
This specifies the GCP Service Account Email
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC ID Token as a JWT
POST /gateway/ng/api/oidc/id-token/gcp HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 649
{
"accountId": "text",
"workloadPoolId": "text",
"providerId": "text",
"gcpProjectId": "text",
"serviceAccountEmail": "text",
"oidcIdTokenCustomAttributesStructure": {
"account_id": "text",
"organization_id": "text",
"project_id": "text",
"pipeline_id": "text",
"environment_id": "text",
"environment_type": "text",
"connector_id": "text",
"connector_name": "text",
"service_id": "text",
"service_name": "text",
"triggered_by_name": "text",
"trigger_by_email": "text",
"stage_type": "text",
"step_type": "text",
"context": "text",
"artifact_id": "text",
"artifact_type": "text",
"artifact_name": "text",
"artifact_digest": "text",
"tag": "text",
"step_execution_id": "text",
"delegate_selectors": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This contains GCP OIDC Token request details
This specifies the Harness Account Id
This specifies the Workload Pool Id
This specifies the OIDC ID Provider
This specifies the GCP Project Id
This specifies the GCP Service Account Email
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC ID Token as a JWT
POST /gateway/ng/api/oidc/id-token/gcp-v2 HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 649
{
"accountId": "text",
"workloadPoolId": "text",
"providerId": "text",
"gcpProjectId": "text",
"serviceAccountEmail": "text",
"oidcIdTokenCustomAttributesStructure": {
"account_id": "text",
"organization_id": "text",
"project_id": "text",
"pipeline_id": "text",
"environment_id": "text",
"environment_type": "text",
"connector_id": "text",
"connector_name": "text",
"service_id": "text",
"service_name": "text",
"triggered_by_name": "text",
"trigger_by_email": "text",
"stage_type": "text",
"step_type": "text",
"context": "text",
"artifact_id": "text",
"artifact_type": "text",
"artifact_name": "text",
"artifact_digest": "text",
"tag": "text",
"step_execution_id": "text",
"delegate_selectors": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This contains custom OIDC Token request details
This specifies the Harness Account Id
This overrides the default subject field in ID token
This specifies the audience field in ID token
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC ID Token as a JWT
POST /gateway/ng/api/oidc/id-token/custom HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 580
{
"accountId": "text",
"oidcIdTokenCustomAttributesStructure": {
"account_id": "text",
"organization_id": "text",
"project_id": "text",
"pipeline_id": "text",
"environment_id": "text",
"environment_type": "text",
"connector_id": "text",
"connector_name": "text",
"service_id": "text",
"service_name": "text",
"triggered_by_name": "text",
"trigger_by_email": "text",
"stage_type": "text",
"step_type": "text",
"context": "text",
"artifact_id": "text",
"artifact_type": "text",
"artifact_name": "text",
"artifact_digest": "text",
"tag": "text",
"step_execution_id": "text",
"delegate_selectors": "text"
},
"sub": "text",
"aud": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This contains AWS OIDC Token request details
This specifies the Harness Account Id
This specifies the Aws region
Set of field names to include as AWS session tags.
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC ID Token as a JWT
POST /gateway/ng/api/oidc/id-token/aws HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 600
{
"accountId": "text",
"oidcIdTokenCustomAttributesStructure": {
"account_id": "text",
"organization_id": "text",
"project_id": "text",
"pipeline_id": "text",
"environment_id": "text",
"environment_type": "text",
"connector_id": "text",
"connector_name": "text",
"service_id": "text",
"service_name": "text",
"triggered_by_name": "text",
"trigger_by_email": "text",
"stage_type": "text",
"step_type": "text",
"context": "text",
"artifact_id": "text",
"artifact_type": "text",
"artifact_name": "text",
"artifact_digest": "text",
"tag": "text",
"step_execution_id": "text",
"delegate_selectors": "text"
},
"region": "text",
"oidcSessionTagKeys": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?