You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/02/07 17:31:41 UTC

[jira] [Resolved] (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:all-tabpanel ]

Claus Ibsen resolved CAMEL-10779.
---------------------------------
    Resolution: Fixed
      Assignee: Zoran Regvart

Thanks for the PR

> 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
>            Assignee: Zoran Regvart
>            Priority: Minor
>              Labels: authentication, oauth2
>             Fix For: 2.19.0
>
>
> 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)