A company’s single sign-on settings
const url = 'https://beta-api.plune.ai/v1/companies/example/sso';const options = {method: 'GET', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/companies/example/sso \ --cookie plune_session=<plune_session>The owner reads every setting, the certificates and the DNS record each domain waits for; a manager reads that it is on, whether it is required and which domains stand - no value (#1449, ADR 0054 §3). sp is what to enter at the identity provider. Never a private key. The session only. A company without the saml option is refused by name, the read too.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The settings
The owner reads everything below; a manager reads configured, enabled, enforced and, per domain, domain and verified - no value.
object
What to enter at the identity provider.
object
The bookmark for the provider’s application tile; null until a domain is verified.
object
object
The company’s public certificate for signed requests; there is no private key to read.
The owner has signed in through this provider: what «required» waits for.
Only in the answer to a save that sent revokeTokens: how many tokens it revoked (0 when the requirement is not on after it).
object
The DNS TXT record that proves the domain: put value in a TXT record at name, then ask for the verification.
object
Example
{ "defaultRole": "member", "domains": [ { "domain": "acme.example", "record": { "type": "TXT", "name": "_plune-sso.acme.example", "value": "plune-sso-verification=Zt3b…" } } ]}No / invalid session
The company does not have the saml option (code: tier_option_required, option: saml): a Team plan with the option, or Enterprise. Also: the caller is not the owner (or, for the read, a manager)
object
Example generated
{ "error": "example"}No such company, or the caller is not in it
object
Example generated
{ "error": "example"}