Skip to content
APIProductDomains and accessSSO Connection

SSO Connection routes: activate, deactivate

The SSO Connection Verbs activate, deactivate as api.sb routes, with inputs, result, refusals and an example.

Reference for SSO Connection, one group of SSO Connection routes.

SSOConnection.activate

Activate turns an SSO Connection on after a test sign-in passes, so the Tenant’s people sign in through it. Verb page.

Text
POST /{namespace}/sso-connections/{connection}/activate

Path: connection. Emits SSOConnection.activated.

Inputs

InputTypeRequiredDescription
connectionSSO ConnectionrequiredThe SSO Connection to turn on.

Returns

OutputTypeRequiredDescription
connectionSSO ConnectionrequiredThe SSO Connection, now active.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
curl -X POST https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7/activate \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
JSON
{
  "api": "https://api.sb/leaseline.app",
  "connection": {
    "$id": "https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7",
    "$type": "SSOConnection",
    "protocol": "saml",
    "state": "draft"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "SSOConnection.activate",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}

SSOConnection.deactivate

Deactivate turns an SSO Connection off, so nobody signs in through it; its configuration is kept. Verb page.

Text
POST /{namespace}/sso-connections/{connection}/deactivate

Path: connection. Emits SSOConnection.deactivated.

Inputs

InputTypeRequiredDescription
connectionSSO ConnectionrequiredThe SSO Connection to turn off.

Returns

OutputTypeRequiredDescription
connectionSSO ConnectionrequiredThe SSO Connection, now inactive.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
curl -X POST https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7/deactivate \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
JSON
{
  "api": "https://api.sb/leaseline.app",
  "connection": {
    "$id": "https://api.sb/leaseline.app/sso-connections/sso_gFlPhZJ7A7",
    "$type": "SSOConnection",
    "protocol": "saml",
    "state": "draft"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "SSOConnection.deactivate",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}