You need to sign in to do that
Don't have an account?
edsheppa
Authenticating Salesforce users from an external service.
My Salesforce app calls out to my own external web service. The documentation says to use the user ID and session ID to authenticate and identify users from an external service. Specifically, you're supposed to put the user and session IDs in the web request then have your service call back through the Force.com API to check that the user has an active session and has been authenticated.
I get the idea but there is no example or further explanation. HOW is that done with the API? WHAT API methods are used?
Is your web service using the Salesforce API or are you just calling your website from Salesforce?
Unless your web service needs to connect back to Salesforce, then there is no reason to do any authentication.
I'm calling out of Salesforce, but I do need to authenticate the access to my service. I want to piggyback on the Salesforce authentication and the documentation says it is possible. I just don't know how.
Thanks. For those who follow after, here's a wiki article that talks about this: http://wiki.developerforce.com/index.php/Single_Sign_On_for_Composite_Apps.
Having to get the callback server URL from Visualforce is hacky. Seems like triggers and batch jobs will be sol. is there some way to get it directly in Apex?