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
HirenHiren 

Generate Session ID

So, We have a secure call out happening with the client's server. Following that they have seperate webservice that will talk back to SF to fetch the data (to overcome 3MB governer limit). Basically I want to generate the session ID and give it to them (in this secure channel) so that they dont need to do do authentication again.

 

Ref: http://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_oauth.htm

 

Possible? How to do this?

Scott_VSScott_VS

Try having the client log in through OAuth, obtain a refresh token, and store it locally on their end. The refresh token can provide them with a new session id every time they need a new one in the future.

 

http://na12.salesforce.com/help/doc/en/remoteaccess_oauth_refresh_token_flow.htm

HirenHiren

So, they will have to login atleast once right? Is there a way out? say providing a temporary access_token or something thats valid only to access a particular file/attachment.