Authenticate salesforce user name and password from CQ
Hi, I want to authenticate Salesforce user credential from CQ using API.
Can you please give me any example or steps to do it? I searched api and found com.adobe.cq.mcm.salesforceSalesforceSecretServlet. It says: The SalesforceSecretServlet connects to the specified Salesforce instance and validates the request. It seems I need to override the doGet() method. However I am not getting how to pass salesforce user name and password to authenticate using this API.
My requirement is to first authenticate a given salesforce user in in CQ code and once authenticated, then access logged in user's data from salesforce into CQ. I got this url online but this is thru AEM console for a given user. I want to do it thru backend code.
http://docs.adobe.com/docs/en/aem/6-0/administer/integration/third-party-services/salesforce.html
Please suggest.
Thanks,