How to setup Single Sign On with Canvas

Hi @plim,
yes, I can login to the model using Architect (SSO and SSL works fine).
the error I’m getting is:
Possibly unhandled rejection: {"data":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<head xmlns:fault=\"http://developer.cognos.com/schemas/xts/portal/iFaultHandler/1/\"><meta http-equiv=\"refresh\" content=\"0; URL=/ibmcognos/bi/?legacyLogin=%2fibmcognos%2fbi%2fv1%2fdisp%3f%26b_action%3dxts.run%26c_cmd%3dhttps%253a%252f%252fxe-s-tbmfe01t.xe.domain.com%253a8080%252fsamples%252f%26c_mode%3dget%26encoding%3dUTF-8%26m%3dportal%252fbridge.xts%26c_env%3dportal%252fvariables_TM1.xml\"/></head>","status":200,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://xe-s-tbmdb01t.xe.domain.com:443/ibmcognos/bi/v1/disp?b_action=xts.run&m=portal/bridge.xts&CAMNamespace=domain.com&c_env=portal/variables_TM1.xml&c_mode=get&c_cmd=https://xe-s-tbmfe01t.xe.domain.com:8080/samples/","headers":{"Accept":"application/json, text/plain, */*"},"withCredentials":true},"statusText":"OK"}

The instances.json looks as follows:
[
{
“name”:“dev”,

	"restUri":"https://xe-s-tbmdb01t.xe.domain.com:8882",
    
	"applyParenthesisFormatting":true,
    
	"chartColorScheme":["#848484"],

        "clientCAMURI":"https://xe-s-tbmdb01t.xe.domain.com:443/ibmcognos/bi/v1/disp",
        "camNamespaces":["domain.com"],
        "useSSOWithCAM":true


  }
]

and finally the header.script.init.ftl:

// For SSO Configuration
ssoSlaves = {
  "https://xe-s-tbmdb01t.xe.domain.com:443": "/ibmcognos/xdomain.canvas.html"
};

// ADD YOUR CUSTOM ANGULAR MODULES HERE
// i.e. for adding the module of ngFileUpload to make it available on your Canvas application
// customAngularModules.push('ngFileUpload');

Is there anything I’m doing wrongly?