Using DotConnect for Salesforce when all you have is a Session Id

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
craigd
Posts: 23
Joined: Wed 30 Jan 2013 11:33

Using DotConnect for Salesforce when all you have is a Session Id

Post by craigd » Fri 08 Nov 2013 10:09

Our company has a complex mechanism of verifying user credentials and fundamentally the best way to interact with SFDC is via the REST/Bulk or SOAP API armed only with a Session Id that can be gathered using a web browser control.

Is there any way to bypass the credential part of the login and just provide the session id and server url to the system and then proceed as normal?

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

Re: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Thu 14 Nov 2013 11:28

craigd wrote:Is there any way to bypass the credential part of the login and just provide the session id and server url to the system and then proceed as normal?
Currently this functionality is not available in dotConnect for Salesforce. We will investigate the possibility of implementing this feature and notify you about the result.

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

Re: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Thu 21 Nov 2013 12:15

The support of OAuth 2.0 is implemented to allow authentication with the Refresh Token, Client ID, and Client Secret parameters. OAuth 2.0 is described at http://wiki.developerforce.com/page/Dig ... _Force.com.

We will post here 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: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Thu 28 Nov 2013 14:19

New build of dotConnect for Salesforce 2.4.266 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=28402.

craigd
Posts: 23
Joined: Wed 30 Jan 2013 11:33

Re: Using DotConnect for Salesforce when all you have is a Session Id

Post by craigd » Sun 01 Dec 2013 00:22

Thanks for the update.

Back to the original question, if I have multiple applications that are not sharing the same library, but where I want to use the same session id, is there a way to bypass the login process and provide the session id directly as you can do with the standard REST API?

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

Re: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Mon 02 Dec 2013 15:28

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

You want to establish connection basing only on SOAP API's Session Id (which is equal to REST API's Access Token), don't you? If yes, please specify the following information:
a) which authentication technology should we use when employing only SOAP API's Session Id?
b) give us a detailed description of your scenario so that we understand your needs

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

Re: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Thu 03 Jul 2014 07:49

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: Using DotConnect for Salesforce when all you have is a Session Id

Post by Shalex » Thu 10 Jul 2014 14:53

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