Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

AddGenericOAuthProvider

Add a new OAuth2 identity provider in the organization

POST
/management/v1/idps/oauth

Request Body

application/json
  1. body
name?name
clientId?client_id
clientSecret?client_secret
authorizationEndpoint?authorization_endpoint
tokenEndpoint?token_endpoint
userEndpoint?user_endpoint
scopes?array<string>
idAttribute?id_attribute

identifying attribute of the user in the response of the user_endpoint

providerOptions?
usePkce?use_pkce

Enable the use of Proof Key for Code Exchange (PKCE) for the OAuth2 flow.

Response Body

Success

application/json
  1. response
details?
id?id
Example Request
curl -X POST 'https://example.com/management/v1/idps/oauth' \  -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"  },  "id": "string"}

Was this page helpful?