Create an new SSO connector instance for a given provider.
Body
Required
-
The connector config. Its shape depends on the connector's provider. For the
SAMLandAzureADproviders, setdisableEmailSynctotrueto keep the email address from the SAML assertion only on the SSO identitydetailasunverifiedEmail: it is then neither saved as a new user's primary email nor used to link an existing account.Additional properties are allowed.
-
Minimum length is
1, maximum length is128. -
Minimum length is
1, maximum length is128.
POST
/api/sso-connectors
curl \
--request POST 'https://[tenant_id].logto.app/api/sso-connectors' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"config": {},
"domains": [
"string"
],
"branding": {
"displayName": "string",
"logo": "string",
"darkLogo": "string"
},
"syncProfile": true,
"enableTokenStorage": true,
"providerName": "string",
"connectorName": "string"
}'
Request examples
{
"config": {},
"domains": [
"string"
],
"branding": {
"displayName": "string",
"logo": "string",
"darkLogo": "string"
},
"syncProfile": true,
"enableTokenStorage": 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,
"enableTokenStorage": true,
"createdAt": 42.0
}