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
Subhasis SanyalSubhasis Sanyal 

Programatically External SSO Authentication Check from Apex Controller

I have configured a Salesforce Org with external user-authentication provider (like Facebook) using SSO. When the User tries to login, Salesforce automatically reach out to the SSO IDP Provider and grant login accordingly. Now, I have a signature-page (Custom VF) in my Salesforce application where user has to mandatorily provide his login and password when the form is submitted. In the back-end Apex Controller Class, I want to validate this login and password with SSO IDP Provider. Is there any Salesforce Handler Class whom I can call for this and let that Salesforce handler contact the SSO IDP Provider in the same way it is doing during user Login? Or else I need to do a manual REST API Callout to the external SSO IDP Provider and there is no way Salesforce default authentication service help me here?