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
Ryan M.ax204Ryan M.ax204 

Single sign on again

I have read the other posts on SSO but am still not totally clear so I wanted to explicitly ask this:

I am developing a custom tab. I have specified a URL to invoke when the tab is selected. This URL is to my site which uses anonymous authentication. I was under the impression that via a cookie or something I would be able to pick up the active session ID for the user and start making SOAP API calls. But I'm not understanding exactly where to start. Is this possible? If so, is there a code snippet for this?

Basically the user has already logged onto salesforce.com, and I don't want to have to ask them to type in their username/password again.

Any help would be appreciated.

Ryan
Ryan M.ax204Ryan M.ax204
Anybody have any thoughts on this?
SuperfellSuperfell
You should be able to pass a sessionId & serverUrl on the URL, which your server can then use to verify the session.
Ryan M.ax204Ryan M.ax204
Hi Simon - I started to write back saying that what I was asking is if salesforce could automatically do this for me, and then all of a sudden it occured to me that I can use the API merge fields in the URL to pass this along.

Thanks!! Got it now...

Ryan