Authenticating using SessionId

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
BrettRose
Posts: 2
Joined: Thu 09 Jan 2014 17:01

Authenticating using SessionId

Post by BrettRose » Thu 09 Jan 2014 17:06

Hello,

In our current system (we wrote our own wrapper around the wsdl then bought your tool seeing as it was easier to use but we have one thing that we need to do that I have seen no support from your tool) we pass in the session Id to log into Salesforce. We have an api user then we replace the session that the api user logs in with, with the session Id that is passed in. With the entity framework tool that you provide it uses the default api user every time with no way to change the session id.

I have seen suggestions to use OAuth 2.0 in order to do this but I do not know how to use OAuth 2.0 with dotConnect for Salesforce nor I have seen any examples in your forums.

Can you provide an example on how to us OAuth 2.0 to authenticate with Salesforce using dotConnect for Salesforce or provide some way to pass in the session Id into your context to say that this is the session we want to use?

Thanks,
Brett

BrettRose
Posts: 2
Joined: Thu 09 Jan 2014 17:01

Re: Authenticating using SessionId

Post by BrettRose » Fri 10 Jan 2014 22:13

Is anyone from Devart even monitoring these forums? I would have expected at least some kind of reply within 24 hours from someone if my company is paying for the license. I would appreciate a response.

Thank you

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Authenticating using SessionId

Post by Shalex » Sat 11 Jan 2014 10:14

BrettRose wrote:Can you provide an example on how to us OAuth 2.0 to authenticate with Salesforce using dotConnect for Salesforce or provide some way to pass in the session Id into your context to say that this is the session we want to use?
Currently there are two ways of authentication with dotConnect for Salesforce:
1) "standard" with User Id, Password, Security Token
2) OAuth 2.0 with Client ID, Client Secret, Refresh Token
OAuth 2.0 is described at http://wiki.developerforce.com/page/Dig ... _Force.com. We have just sent a sample with this approach to your e-mail.
BrettRose wrote:Also, how does your framework deal with timeouts of Salesforce? Does it handle all the session logic underneath the covers?
Which exactly timeouts do you mean?
BrettRose wrote:I would have expected at least some kind of reply within 24 hours from someone if my company is paying for the license.
Our support has a two business day response policy. For more information, refer to http://www.devart.com/dotconnect/salesf ... pport.html.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Authenticating using SessionId

Post by Shalex » Thu 03 Jul 2014 07:53

The SessionId authentication type is implemented to allow authorization with the Session Id (Access Token), Organization Id, and Host connection string parameters. OrganizationId can be found in the Salesforce account: https://success.salesforce.com/answers? ... 000gtwDAAQ.

We will notify you when the corresponding build of dotConnect for Salesforce is available for download.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Authenticating using SessionId

Post by Shalex » Thu 10 Jul 2014 14:54

New build of dotConnect for Salesforce 2.4.422 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/salesf ... nload.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=38&t=29941.

Post Reply