We can't log you in. Check for an invalid assertion in the SAML Assertion Validator (available in Single Sign-On Settings) or check the login history for failed logins.
IDP : Connected App created, Profile permission given to that connected app, security certifcate created and passed to Sp.
SP : Did all the required SSO settings, added issued certificate
While logging in IDP org, getting above mentioned error. Nothing got tracked in login history as well.
While calling out other system's webservices from salesforce org. This 401 invalid seesion id error is being prompted. Even though i had mentioned Username and password in header of HttpRequest. Is there any workaround to fix it.
Code snippet has been attached below.
Http h = new Http();
Httprequest request = new Httprequest();
String username = 'xxxxx';
String password = 'xxxx';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue);
Httpresponse response = h.send(request);
Any help, would be appreciate.