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
Herish SurendranHerish Surendran 

How to get the SSO token from Single Sign on provider?

We are using Single sign on to login to Salesforce. We'd like to make an API callout from Salesforce to an internal API. To authenticate to access the API, we'd like to use the session token from the single sign-on to send with the HttpRequest so that the service can validate that the request is coming from a reliable user from salesforce. How to get the user session token that the single sign-on provider sends using Apex?

Any guidance would be helpful. Thank you!
VinayVinay (Salesforce Developers) 
Hi Herish,

Single Sign on is the process that allows all networks users to access all authorized network resources through single username and password without having different usernames and passwords for every resource in the network.

Below are few references which can give you more information.

https://developer.salesforce.com/docs/atlas.en-us.sso.meta/sso/sso_about.htm
https://help.salesforce.com/articleView?id=sso_about.htm&type=5
https://www.jitendrazaa.com/blog/salesforce/salesforce-single-sign-on-sso-using-janrain/

Thanks,
Vinay Kumar