Sign people in through your identity provider (OpenID Connect)
const url = 'https://api.global.stillbox.example/v1/org/sso';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"protocol":"oidc","issuer":"example","client_id":"example","saml_metadata":"example","saml_metadata_url":"example","client_secret":"example","enabled":true,"enforced":false,"default_role":"member"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.global.stillbox.example/v1/org/sso \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "protocol": "oidc", "issuer": "example", "client_id": "example", "saml_metadata": "example", "saml_metadata_url": "example", "client_secret": "example", "enabled": true, "enforced": false, "default_role": "member" }'Owners give the provider’s issuer address, and the client ID and secret of an app registered there with
redirect_uri as its sign-in redirect (ADR 0034). People with an email in one of the organization’s verified
domains then sign in with “Sign in with single sign-on” and join with default_role the first time. With
enforced, those domains’ people can’t sign in any other way.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
OpenID Connect: e.g. https://login.microsoftonline.com/
Required for OpenID Connect.
SAML only. The identity provider’s metadata XML. Give this or saml_metadata_url.
SAML only. Where to read the identity provider’s metadata (https).
Required the first time; omit to keep the current one.
Responses
Section titled “Responses”The setting
object
What to give the identity provider, and what its metadata says.
object
Our entity ID (audience) to register at the identity provider.
Our assertion consumer service (reply URL)
Our metadata
When the identity provider’s signing certificate expires.
Where the identity provider’s metadata was read from.
Whether a client secret is kept; it is never shown.
Register this as the app’s redirect address at the identity provider.
object
The TXT record to add, e.g. _stillbox-verification.acme.com.
Example
{ "protocol": "oidc", "default_role": "member"}The request is invalid
object
Example
{ "code": "not_found"}The API key is missing or invalid
object
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
object
Example
{ "code": "not_found"}