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

Oidc ID Token

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

Generates an OIDC ID Token for Azure

post
Body
accountIdstring · min: 1Required
tenantIdstringOptional
clientIdstringOptional
audiencestringOptional
subjectstringOptional
subscriptionIdstringOptional
resourceGroupstringOptional
enhancedSubClaimFieldsstring[]Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

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

Generates an OIDC ID Token for GCP

post
Body

This contains GCP OIDC Token request details

accountIdstring · min: 1Required

This specifies the Harness Account Id

workloadPoolIdstring · min: 1Required

This specifies the Workload Pool Id

providerIdstring · min: 1Required

This specifies the OIDC ID Provider

gcpProjectIdstring · min: 1Required

This specifies the GCP Project Id

serviceAccountEmailstringOptional

This specifies the GCP Service Account Email

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

Generates an OIDC ID Token for GCP

post
Body

This contains GCP OIDC Token request details

accountIdstring · min: 1Required

This specifies the Harness Account Id

workloadPoolIdstring · min: 1Required

This specifies the Workload Pool Id

providerIdstring · min: 1Required

This specifies the OIDC ID Provider

gcpProjectIdstring · min: 1Required

This specifies the GCP Project Id

serviceAccountEmailstringOptional

This specifies the GCP Service Account Email

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

Generate a custom OIDC ID Token

post
Body

This contains custom OIDC Token request details

accountIdstringOptional

This specifies the Harness Account Id

substringOptional

This overrides the default subject field in ID token

audstring · min: 1Required

This specifies the audience field in ID token

Responses
400

Bad Request

This is Failure entity as defied in Harness

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

Generates an OIDC ID Token for AWS

post
Body

This contains AWS OIDC Token request details

accountIdstringOptional

This specifies the Harness Account Id

regionstringOptional

This specifies the Aws region

oidcSessionTagKeysstring[]Optional

Set of field names to include as AWS session tags.

Responses
400

Bad Request

This is Failure entity as defied in Harness

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