Oidc Access Token
This contains APIs related to OIDC Access Token generation as defined in Harness
This contains Aws OIDC Credentials request details
The OIDC ID Token
IAM Role ARN
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Generate an OIDC IAM Role Credential for AWS
POST /gateway/ng/api/oidc/access-token/aws/webidentity-session-access HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 734
{
"oidcIdToken": "text",
"iamRoleArn": "text",
"retryPolicy": {
"backOffStrategyType": "text",
"backOffStrategy": {}
},
"awsOidcTokenRequestDto": {
"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"
}
]
}This contains GCP OIDC Access Token request details
The OIDC ID Token
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC Service Account Access Token response
POST /gateway/ng/api/oidc/access-token/gcp/service-account-access HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 697
{
"oidcIdToken": "text",
"gcpOidcTokenRequestDTO": {
"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"
}
]
}Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns Azure credentials
POST /gateway/ng/api/oidc/access-token/azure HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 829
{
"oidcToken": "text",
"tenantId": "text",
"clientId": "text",
"resource": "text",
"azureOidcTokenRequestDTO": {
"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"
]
},
"retryPolicy": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}This contains GCP OIDC Access Token request details
The OIDC ID Token
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns OIDC Workload Access Token response
POST /gateway/ng/api/oidc/access-token/gcp/workload-access HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 697
{
"oidcIdToken": "text",
"gcpOidcTokenRequestDTO": {
"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"
}
]
}Last updated
Was this helpful?