Get Identity Mappings by Mapping Name

JFrog REST APIs

ft:sourceType
Paligo

Description: Get an identity mapping for an OIDC configuration.

Since: Artifactory 7.x.x

Security: Requires a valid admin token

Usage: GET /access/api/v1/oidc/{provider_name}/identity_mappings/{identity mapping name}

Produces: text/plain

Sample Usage

curl -X GET 'http://sample.jfrog.io/access/api/v1/oidc/ciconnect/identity_mappings/zmap' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer cmVmdmI0'

{
    "name": "zmap",
    "description": "",
    "claims": {
        "name": "github-repo-read",
        "claims": {
            "sub": "repo:humpty/access-oidc-poc:ref:refs/heads/main",
            "workflow_ref": "humpty/access-oidc-poc/.github/workflows/job.yaml@refs/heads/main"
        },
        "provider_name": "github-oidc",
        "token_spec": {
            "username": "humpty",
            "scope": "applied-permissions/user",
            "audience": [
                "jfrt@service_id"
            ],
            "expires_in": 3600
        }
    },
    "token_spec": {
        "username": "humpty",
        "scope": "applied-permissions/admin",
        "audience": "*@*",
        "expires_in": 60
    },
    "priority": 2
}