StatusDashboard
DashboardsSingle Sign-On

Configure SSO provider

Create or replace the SSO provider for a dashboard.

View Markdown

PUT /app/dashboards/{id}/sso

Creates or replaces the SSO provider for a dashboard. If a provider already exists, it is fully replaced by the new configuration. Requires the SSO feature entitlement.

Saving a provider does not automatically enable SSO enforcement. Use the Toggle SSO endpoint to enable it after configuration.


Path parameters

ParameterDescription
idThe UUID of the dashboard.

Request

See API Basics for required headers.

Request body — SAML

FieldTypeRequiredDescription
providerType"SAML"YesMust be "SAML".
samlMetadataXmlstringYesThe IdP federation metadata XML. Maximum 50,000 characters.

Request body — OIDC

FieldTypeRequiredDescription
providerType"OIDC"YesMust be "OIDC".
oidcobjectYesOIDC provider details. See below.

oidc object

FieldTypeDescription
issuerstringIssuer URL of the identity provider (must be a valid HTTPS URL).
clientIdstringClient ID assigned by the IdP.
clientSecretstringClient secret assigned by the IdP. Send an empty string to leave the existing secret unchanged; must be non-empty on first save.
authorizationEndpointstringAuthorization endpoint URL.
tokenEndpointstringToken endpoint URL.
userInfoEndpointstringUserInfo endpoint URL.
jwksUristringJWKS URI for verifying ID tokens.

Sample request — SAML

curl -X PUT https://api.statusdashboard.com/app/dashboards/a1b2c3d4-e5f6-7890-abcd-ef1234567890/sso \
  -H "Authorization: Bearer bcf847abf5c6:def456" \
  -H "Content-Type: application/json" \
  -d '{
    "providerType": "SAML",
    "samlMetadataXml": "<?xml version=\"1.0\"?>..."
  }'

Sample request — OIDC

curl -X PUT https://api.statusdashboard.com/app/dashboards/a1b2c3d4-e5f6-7890-abcd-ef1234567890/sso \
  -H "Authorization: Bearer bcf847abf5c6:def456" \
  -H "Content-Type: application/json" \
  -d '{
    "providerType": "OIDC",
    "oidc": {
      "issuer": "https://dev-12345678.okta.com",
      "clientId": "0oabc123def456ghi789",
      "clientSecret": "your-client-secret",
      "authorizationEndpoint": "https://dev-12345678.okta.com/oauth2/v1/authorize",
      "tokenEndpoint": "https://dev-12345678.okta.com/oauth2/v1/token",
      "userInfoEndpoint": "https://dev-12345678.okta.com/oauth2/v1/userinfo",
      "jwksUri": "https://dev-12345678.okta.com/oauth2/v1/keys"
    }
  }'

Sample response

Status: 200 OK

{
  "enabled": false,
  "providerType": "OIDC",
  "cognitoProviderName": "DASHBOARD-A1B2C3D4"
}

The full SSO configuration including SP metadata can be retrieved with Get SSO config.


Error responses

StatusWhen
400Validation error — see details in the response body.
403SSO feature not enabled on the plan.
404Dashboard not found or does not belong to the caller's organization.

On this page

We use cookies

We use essential cookies to keep the site working, and optional analytics cookies to understand how it's used. Read our Privacy Policy.