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
Basic authentication through a rest client in SSO is not supported.
SSO requires API Key in a Bearer Token header.
Reference the Tech Docs regarding in SSO the REST API calls are supported by using API keys
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.