Create SSO connector

POST /api/sso-connectors

Create an new SSO connector instance for a given provider.

application/json

Body Required

Responses

  • 200 application/json

    The created SSO connector.

    Hide response attributes Show response attributes object
  • Bad Request

  • Unauthorized

  • Forbidden

  • Conflict

  • At lease one of the given input fields is invalid or IdP connection cannot be verified with the given config.

POST /api/sso-connectors
curl \
 -X POST https://[tenant_id].logto.app/api/sso-connectors \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"config":{},"domains":["string"],"branding":{"displayName":"string","logo":"string","darkLogo":"string"},"syncProfile":true,"providerName":"string","connectorName":"string"}'
Request examples
{
  "config": {},
  "domains": [
    "string"
  ],
  "branding": {
    "displayName": "string",
    "logo": "string",
    "darkLogo": "string"
  },
  "syncProfile": true,
  "providerName": "string",
  "connectorName": "string"
}
Response examples (200)
{
  "tenantId": "string",
  "id": "string",
  "providerName": "string",
  "connectorName": "string",
  "config": {},
  "domains": [
    "string"
  ],
  "branding": {
    "displayName": "string",
    "logo": "string",
    "darkLogo": "string"
  },
  "syncProfile": true,
  "createdAt": 42.0
}