function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aditya prasadaditya prasad 

How to connect SSO through Rest API.

Hello ,
 We are trying to access an external system accolade from salesforce.To access accolade We have aURL given and login can be done through SSO. For now I just have user name to acccess accolade but no password. I have written below code but seems not working and throwing error "Unable to tunnel through proxy. Proxy returns "HTTP/1.0 404 Not Found""
       AccoladeSetting1__c accolade = AccoladeSetting1__c.getorgDefaults();
        HTTP h = new HTTP();
        HTTPRequest r = new HTTPRequest();
        Blob headerValue = Blob.valueOf(accolade.UserName__c );
        String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue);
        r.setHeader('Authorization', authorizationHeader);
        r.setMethod('GET');
        r.setTimeout(120000);
        
        String baseEndPoint = accolade.Endpoint__c;
        r.setEndpoint(baseEndPoint);
        HTTPResponse resp = new HTTPResponse();
        resp = h.send(r);

Note:-We have already whitelisted all the salesforce IPs.
Can someone suggest any other way to access SSO link of the external system through Rest API ?

Any help will be appreciated.