Domain not allowed for SSO

Moses SkodaEngineer1 min read

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/sso-domain-not-allowed. See Errors and status codes for the shape every error shares.

Domain example.com refused for SSO at domain validation. Use the domain your company owns, not a public mail provider.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
domainstring
reason"public_provider" | "not_admin_domain" | "reserved"

Example#

json
{
  "detail": "Domain example.com refused for SSO at domain validation. Use the domain your company owns, not a public mail provider.",
  "domain": "example.com",
  "reason": "public_provider",
  "type": "https://lingo.dev/docs/api/errors/sso-domain-not-allowed",
  "status": 422,
  "title": "Domain not allowed for SSO"
}

Returned by#

  • PUT /v2/organizations/{orgId}/sso