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
vbvb 

Single Sign On

If someone can explain about programatically generating session ID to login into sales force.

As this is something that we need to acheive by allowing user to logon to our internal website and then show a link to salesforce on our site. Once a user clicks that link we need to take the user to sales force directly without logging on to sales force.

Is there any other way to achieve single sign on ? Link to any sample code or examples on which could help in Single Sign On.
DianaDiana

I would recommend to refer to sforce API documentation downloadable from

http://www.sforce.com/resources/api.jsp

There's a login web service accepting username & password. So once the user logged in to your internal web site, you could authomatically call "login" and to get from the result the sforce session id you need

DianaDiana

Of course in that case it's assumed that yor internal website has same usernames & passwords as sforce, so no mapping would be required. But if it's required you should keep some mapping e,g, in LDAP between your site users to sforce ones. There's a post "Delegated Authentication" which gives more details about mapping technic.