Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Oidc Access Token

This contains APIs related to OIDC Access Token generation as defined in Harness

Generate an OIDC IAM Role Credential for AWS

post
Body

This contains Aws OIDC Credentials request details

oidcIdTokenstringOptional

The OIDC ID Token

iamRoleArnstring · min: 1Required

IAM Role ARN

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/oidc/access-token/aws/webidentity-session-access
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"
    }
  ]
}

Generates an OIDC Service Account Access Token for GCP

post
Body

This contains GCP OIDC Access Token request details

oidcIdTokenstring · min: 1Required

The OIDC ID Token

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/oidc/access-token/gcp/service-account-access
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"
    }
  ]
}

Exchanges an OIDC token for Azure credentials

post
Body
oidcTokenstringOptional
tenantIdstring · min: 1Required
clientIdstring · min: 1Required
resourcestringOptional
retryPolicystringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/oidc/access-token/azure
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"
    }
  ]
}

Generates an OIDC Workload Access Token for GCP

post
Body

This contains GCP OIDC Access Token request details

oidcIdTokenstring · min: 1Required

The OIDC ID Token

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/oidc/access-token/gcp/workload-access
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?