Choose your language:
    Retrieve SSO Settings
    Returns
    Returns a sso_settings object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoSettings = await client.ssoSettings.find();
    console.log(ssoSettings);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "idpSamlMetadataUrl": "https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata",
    "scimBaseUrl": "https://sso.datocms.com/scim",
    "samlAcsUrl": "https://sso.datocms.com/XXX/saml/consume",
    "spSamlMetadataUrl": "https://sso.datocms.com/XXX/saml/metadata",
    "spSamlBaseUrl": "https://sso.datocms.com/XXX/saml",
    "samlToken": "a2a24ae5fbb2d955b1b4fa73f2dd58",
    "scimApiToken": "as3dasjh1234hj1",
    "defaultRole": null
    }