SSO
9 operations in the WP Waterfall API.
- getGet the SAML connection
- putCreate or replace the SAML connection
- patchChange SSO settings
- deleteRemove the SAML connection
- postAdd a signing certificate (rotation)
- deleteRemove a signing certificate
- getWhat the identity provider needs from WP Waterfall
- postTest the connection
- postCheck the DNS record that proves the domains
Get the SAML connection
get/companies/me/ssoPermalink to Get the SAML connection
- Permission:
sso.manage - Dashboard session only, no API key
Enterprise accounts only.
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoConnection | Connection |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
provider required | string | |
issuer required | string | The identity provider's entity ID. |
entry_point required | string | The identity provider's single sign-on URL. |
enforced required | boolean | |
domains required | array of string | |
domain_verified required | boolean | |
domain_record required | object | The DNS TXT record that proves the company owns its domains. |
domain_record.name_prefix required | string | |
domain_record.value required | string | |
sp required | object | |
sp.entity_id required | string | |
sp.acs_url required | string | |
sp.metadata_url required | string | |
certificates required | array of object | |
certificates[].fingerprint required | string | |
certificates[].subject required | string | |
certificates[].not_before required | string (date-time) | |
certificates[].not_after required | string (date-time) | |
certificates[].expired required | boolean | |
certificates[].expires_soon required | boolean | Expires within 30 days. Add the new certificate before the old one stops. |
jit required | object | |
jit.enabled required | boolean | |
jit.default_role required | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
jit.group_attribute required | string or null |
Create or replace the SAML connection
put/companies/me/ssoPermalink to Create or replace the SAML connection
- Permission:
sso.manage - Dashboard session only, no API key
Give the identity provider's metadata (a URL or the XML), or its entity ID, sign-in URL, and certificate. Signed assertions are required. Metadata URLs must be public https addresses.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, UpsertSsoRequest
Fields
| Name | Type | Description |
|---|---|---|
provider | string | Default: saml. |
idp_metadata_url | string (uri) | |
idp_metadata_xml | string | |
issuer | string | |
entry_point | string (uri) | |
certificate | string | |
domains | array of string | |
enforced | boolean | Default: false. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoConnection | Connection |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
409 | Problem | Conflict with the current state |
422 | Problem | A field is missing or not valid |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
provider required | string | |
issuer required | string | The identity provider's entity ID. |
entry_point required | string | The identity provider's single sign-on URL. |
enforced required | boolean | |
domains required | array of string | |
domain_verified required | boolean | |
domain_record required | object | The DNS TXT record that proves the company owns its domains. |
domain_record.name_prefix required | string | |
domain_record.value required | string | |
sp required | object | |
sp.entity_id required | string | |
sp.acs_url required | string | |
sp.metadata_url required | string | |
certificates required | array of object | |
certificates[].fingerprint required | string | |
certificates[].subject required | string | |
certificates[].not_before required | string (date-time) | |
certificates[].not_after required | string (date-time) | |
certificates[].expired required | boolean | |
certificates[].expires_soon required | boolean | Expires within 30 days. Add the new certificate before the old one stops. |
jit required | object | |
jit.enabled required | boolean | |
jit.default_role required | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
jit.group_attribute required | string or null |
Change SSO settings
patch/companies/me/ssoPermalink to Change SSO settings
- Permission:
sso.manage - Dashboard session only, no API key
Mandatory SSO, domains, just-in-time provisioning and its roles, the exceptions list, and identity provider initiated sign-in (off by default). Mandatory SSO needs a verified domain and a passing test.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PatchSsoRequest
Fields
| Name | Type | Description |
|---|---|---|
enforced | boolean | |
domains | array of string | |
jit_enabled | boolean | |
default_role | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
group_attribute | string or null | |
role_map | object | |
idp_initiated | boolean | |
exceptions | array of string (email) |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoConnection | Connection |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
409 | Problem | Conflict with the current state |
422 | Problem | A field is missing or not valid |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
provider required | string | |
issuer required | string | The identity provider's entity ID. |
entry_point required | string | The identity provider's single sign-on URL. |
enforced required | boolean | |
domains required | array of string | |
domain_verified required | boolean | |
domain_record required | object | The DNS TXT record that proves the company owns its domains. |
domain_record.name_prefix required | string | |
domain_record.value required | string | |
sp required | object | |
sp.entity_id required | string | |
sp.acs_url required | string | |
sp.metadata_url required | string | |
certificates required | array of object | |
certificates[].fingerprint required | string | |
certificates[].subject required | string | |
certificates[].not_before required | string (date-time) | |
certificates[].not_after required | string (date-time) | |
certificates[].expired required | boolean | |
certificates[].expires_soon required | boolean | Expires within 30 days. Add the new certificate before the old one stops. |
jit required | object | |
jit.enabled required | boolean | |
jit.default_role required | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
jit.group_attribute required | string or null |
Remove the SAML connection
delete/companies/me/ssoPermalink to Remove the SAML connection
- Permission:
sso.manage - Dashboard session only, no API key
Removes the company's SAML connection. Only the Owner of an Enterprise account may call it, after a recent sign-in: any other account type answers 403. Answers 204. Needs a dashboard session: an API key cannot call it.
Responses
| Status | Body | Description |
|---|---|---|
204 | Removed | |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
Add a signing certificate (rotation)
post/companies/me/sso/certificatesPermalink to Add a signing certificate (rotation)
- Permission:
sso.manage - Dashboard session only, no API key
Add the new certificate before the identity provider switches to it, then remove the old one.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, AddSsoCertificateRequest
Fields
| Name | Type | Description |
|---|---|---|
certificate required | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoConnection | Connection |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | A field is missing or not valid |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
provider required | string | |
issuer required | string | The identity provider's entity ID. |
entry_point required | string | The identity provider's single sign-on URL. |
enforced required | boolean | |
domains required | array of string | |
domain_verified required | boolean | |
domain_record required | object | The DNS TXT record that proves the company owns its domains. |
domain_record.name_prefix required | string | |
domain_record.value required | string | |
sp required | object | |
sp.entity_id required | string | |
sp.acs_url required | string | |
sp.metadata_url required | string | |
certificates required | array of object | |
certificates[].fingerprint required | string | |
certificates[].subject required | string | |
certificates[].not_before required | string (date-time) | |
certificates[].not_after required | string (date-time) | |
certificates[].expired required | boolean | |
certificates[].expires_soon required | boolean | Expires within 30 days. Add the new certificate before the old one stops. |
jit required | object | |
jit.enabled required | boolean | |
jit.default_role required | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
jit.group_attribute required | string or null |
Remove a signing certificate
delete/companies/me/sso/certificates/{fingerprint}Permalink to Remove a signing certificate
- Permission:
sso.manage - Dashboard session only, no API key
A connection keeps at least one current certificate.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fingerprint required | path | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoConnection | Connection |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
409 | Problem | Conflict with the current state |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
provider required | string | |
issuer required | string | The identity provider's entity ID. |
entry_point required | string | The identity provider's single sign-on URL. |
enforced required | boolean | |
domains required | array of string | |
domain_verified required | boolean | |
domain_record required | object | The DNS TXT record that proves the company owns its domains. |
domain_record.name_prefix required | string | |
domain_record.value required | string | |
sp required | object | |
sp.entity_id required | string | |
sp.acs_url required | string | |
sp.metadata_url required | string | |
certificates required | array of object | |
certificates[].fingerprint required | string | |
certificates[].subject required | string | |
certificates[].not_before required | string (date-time) | |
certificates[].not_after required | string (date-time) | |
certificates[].expired required | boolean | |
certificates[].expires_soon required | boolean | Expires within 30 days. Add the new certificate before the old one stops. |
jit required | object | |
jit.enabled required | boolean | |
jit.default_role required | string | One of: admin, developer, billing, viewer, site_admin, site_developer. |
jit.group_attribute required | string or null |
What the identity provider needs from WP Waterfall
get/companies/me/sso/sp-metadataPermalink to What the identity provider needs from WP Waterfall
- Permission:
sso.manage - Dashboard session only, no API key
The entity ID, the assertion consumer service address, and metadata XML.
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoSpMetadata | Service provider details |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
entity_id required | string | |
acs_url required | string | |
metadata_url required | string | |
metadata_xml required | string |
Test the connection
post/companies/me/sso/testPermalink to Test the connection
- Permission:
sso.manage - Dashboard session only, no API key
Checks the identity provider settings, certificate dates, the metadata URL, and the domain proof. A passing test is needed before mandatory SSO.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoTestResult | Result |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
ok required | boolean | |
checks required | array of object | |
checks[].name required | string | |
checks[].ok required | boolean | |
checks[].detail required | string |
Check the DNS record that proves the domains
post/companies/me/sso/verify-domainPermalink to Check the DNS record that proves the domains
- Permission:
sso.manage - Dashboard session only, no API key
Looks up the TXT record on every domain of the connection. verified is true only when each domain has it, and detail names the domains that lack it. A check that fails also turns off required SSO when it was on. Only the Owner of an Enterprise account may call it, after a recent sign-in, and it answers 404 when no connection is set up. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoDomainCheck | Result |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | Refused |
404 | Problem | Not found |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
verified required | boolean | |
detail required | string |