SSO connections

Get an SSO connection

Returns one SSO connection, including the urls to hand to the IdP administrator. Secrets are never included. Requires sso:view.

get/sso-connection/{id}

Request

  • Base URL: https://api.elaichi.ai
  • URL: https://api.elaichi.ai/sso-connection/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

SSO connection id (sso_…).

Headers

X-Organization-Idstring

Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.

Response

OK

idstring

SSO connection id (sso_…).

organization_idstring

Owning organization (org_…).

protocol'oidc' | 'saml'
namestring
is_activeboolean

A draft may be saved incomplete, but cannot be activated until the protocol's required fields are present.

enforcedboolean

When enforced, users on the connection's verified domains can ONLY sign in through this IdP — social login and email codes are refused for them.

is_defaultboolean

The connection domain resolution picks when a domain has several.

default_role_idstring nullable

Role (role_…) explicitly configured for users provisioned through this connection, or null to track the default. Org Owner is refused here. Read effective_default_role_id to learn what a JIT login actually grants.

effective_default_role_idstring nullable

Server-computed: the role SSO just-in-time provisioning through this connection really grants. Equals default_role_id when that is set and the role still exists; otherwise the Member system role, which is what the join falls back to both when nothing is configured and when the configured role has since been deleted. null means even that fallback is missing, so auto-provisioning through this connection is broken and the first login seats nobody.

has_client_secretboolean

Whether an OIDC client secret is stored. The secret itself is never returned.

urlsobject

The protocol URLs to hand to the IdP administrator (ACS / metadata / callback, by protocol).

created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.