OIDC
Download SpecEndpoints to manage GitHub OIDC configuration using the REST API.
Get the customization template for an OIDC subject claim for an organization
Gets the customization template for an OpenID Connect (OIDC) subject claim.
You must authenticate using an access token with the read:org
scope to use this endpoint.
GitHub Apps must have the organization_administration:write
permission to use this endpoint.
org
string
required
The organization name. The name is not case sensitive.
Response
A JSON serialized template for OIDC subject claim customization
{
"include_claim_keys": [
"repo",
"context"
]
}
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
include_claim_keys
array[string]
required
Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
string
Set the customization template for an OIDC subject claim for an organization
Creates or updates the customization template for an OpenID Connect (OIDC) subject claim.
You must authenticate using an access token with the write:org
scope to use this endpoint.
GitHub Apps must have the admin:org
permission to use this endpoint.
include_claim_keys
array[string]
required
Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
string
org
string
required
The organization name. The name is not case sensitive.
Request
{
"include_claim_keys": [
"repo",
"context"
]
}
Response
Empty response
null
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
Empty response
No schema
message
string
documentation_url
string
url
string
status
string
message
string
documentation_url
string
url
string
status
string
Resource not found
{
"message": "string",
"documentation_url": "string",
"url": "string",
"status": "string"
}
Forbidden
{
"message": "string",
"documentation_url": "string",
"url": "string",
"status": "string"
}
Was this page helpful?