Example code:
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const ssoSettings = await client.ssoSettings.find();
console.log(ssoSettings);
}
run();
Returned output:
{
id: '312',
idp_saml_metadata_url: 'https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata',
idp_saml_metadata_xml: '<?xml version=\'1.0\' encoding=\'UTF-8\'?>...',
scim_base_url: 'https://sso.datocms.com/scim',
saml_acs_url: 'https://sso.datocms.com/XXX/saml/consume',
sp_saml_metadata_url: 'https://sso.datocms.com/XXX/saml/metadata',
sp_saml_base_url: 'https://sso.datocms.com/XXX/saml',
saml_token: 'a2a24ae5fbb2d955b1b4fa73f2dd58',
scim_api_token: 'as3dasjh1234hj1',
default_role: null
}