You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/06 14:48:41 UTC
[jira] [Commented] (CAMEL-10779) Authentication : provide a way to
use refresh_token mode in addition to password method
[ https://issues.apache.org/jira/browse/CAMEL-10779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854145#comment-15854145 ]
ASF GitHub Bot commented on CAMEL-10779:
----------------------------------------
GitHub user ajaira opened a pull request:
https://github.com/apache/camel/pull/1448
[CAMEL-10779] Authentication : provide a way to use refresh_token mode in addition to password method
Objective is to enrich the SalesforceSession.getLoginRequest(HttpConversation) method and add
fields.put("grant_type", "refresh_token");
as an alternative to
fields.put("grant_type", "password");
jira: https://issues.apache.org/jira/browse/CAMEL-10779
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ajaira/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1448.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1448
----
commit 18a6353f9b1638ae4ca6337f7d071b0f35e47f0c
Author: Jaira abderrahim <ab...@capgemini.com>
Date: 2017-02-06T14:35:36Z
Authentication : provide a way to use refresh_token mode in addition to password method
commit 9d9e6d19c4d88f3f0d2fbf356dd45af8b882ebc1
Author: Jaira abderrahim <ab...@capgemini.com>
Date: 2017-02-06T14:42:55Z
Merge branch 'master' of https://github.com/ajaira/camel
----
> Authentication : provide a way to use refresh_token mode in addition to password method
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-10779
> URL: https://issues.apache.org/jira/browse/CAMEL-10779
> Project: Camel
> Issue Type: Improvement
> Components: camel-salesforce
> Reporter: Mabrouk Belhout
> Priority: Minor
> Labels: authentication, oauth2
>
> We had to connect to a Salesforce partner instance. Our partner did not provide login/password but instead a clientid clientsecret and refreshtoken.
> Today in camel-salesforce component, authentication is forced to be login/password based.
> This improvement should provide an alternative using refresh_token method of oauth.
> Objective is to enrich the _SalesforceSession.getLoginRequest(HttpConversation)_ method and add
> {{fields.put("grant_type", "refresh_token");}}
> as an alternative to
> {{fields.put("grant_type", "password");}}
> this has impacts on _SalesforceLoginConfig_ class and other authentication involved classes.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)