We are not able to bypass the SSO when using Clarity APIs. The Rest API client with SSO is not able to log into the environment via Basic authentication
Resolution
For an SSO-enabled Clarity application, authentication to its REST API via basic authentication is not supported. For the supported methods please refer to REST API AUTHENTICATION
Rest API connetion via SSO requires API Key in a Bearer Token header.
In clarity SAAS environments, Only XOG can be accessed using basic authentication, the XOG URL (clarity_xog_url = 'https://cppmxxxx.ondemand.ca.com/niku/xog') is bypassed by SSO.