You need to sign in to do that
Don't have an account?
aditya 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.
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.