Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Instance Objects

AddOIDCIDP

POST
/admin/v1/idps/oidc

Request Body

application/json
  1. body
name?name
stylingType?styling_type
Value in"STYLING_TYPE_UNSPECIFIED""STYLING_TYPE_GOOGLE"
clientId?client_id
clientSecret?client_secret
issuer?issuer
scopes?array<string>
displayNameMapping?username_mapping
Value in"OIDC_MAPPING_FIELD_UNSPECIFIED""OIDC_MAPPING_FIELD_PREFERRED_USERNAME""OIDC_MAPPING_FIELD_EMAIL"
usernameMapping?username_mapping
Value in"OIDC_MAPPING_FIELD_UNSPECIFIED""OIDC_MAPPING_FIELD_PREFERRED_USERNAME""OIDC_MAPPING_FIELD_EMAIL"
autoRegister?auto_register

Response Body

Success

application/json
  1. response
details?
idpId?idp_id
Example Request
curl -X POST 'https://example.com/admin/v1/idps/oidc' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  },  "idpId": "string"}

Was this page helpful?