Create or Update OIDC Configuration

JFrog REST APIs

ft:sourceType
Paligo

Description: Creates a new OIDC configuration or updates an existing OIDC configuration.

Since: Artifactory 7.73.x

Security: Requires a valid admin token

Usage: POST /api/v1/oidc {JSON with OIDC Configuration}

The JSON record must have the following fields.

  • name - Mandatory. Name of the OIDC provider.

  • issuer_url - Mandatory. OIDC issuer URL. For GitHub actions, the URL is https://token.actions.githubusercontent.com/.

  • audience - Optional. Informational field that you can use to include details of the audience that uses the OIDC configuration.

Produces: text/plain

Sample Usage

curl -X POST -H "Content-type: application/json" \
     -H "Authorization: Bearer cOENUdUxv" \ 
     https://example.jfrog.io/access/api/v1/oidc/ -d \
'{"name": "github-oidc", "issuer_url": "https://token.actions.githubusercontent.com/", "audience": "jfrog-github"}'