Hi Shanika, OAuth2 protocol is supported by this connector. But here, we do the username-password and refresh token flow only.
User has to give required credentials and the connector will do the token generation/refreshing part and set the valid access token to the REST calls. Please check the corresponding source code [1] and init template configuration in the documentation [2]. [1] https://github.com/wso2-extensions/esb-connector-salesforcerest/blob/master/src/main/resources/salesforcerest-config/ [2] https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Salesforce+Operations Thanks On Fri, Jun 1, 2018 at 9:25 AM, Shanika Nishani <[email protected]> wrote: > Hi Shakila, > > what would be best authentication method (SFDC ) supported by WSO2 Rest > Connector to retrieve data from SFDC ? > > > Best Regards, > Shanika Nishani > > > On Thu, May 31, 2018 at 7:16 PM, Shakila Sasikaran <[email protected]> > wrote: > >> Hi Shanika, >> >> This getting authorization code invocation requires human interaction. >> IMHO, we can't do this in ESB connector. >> >> Thanks >> >> On Thu, May 31, 2018 at 6:17 PM, Shanika Nishani <[email protected]> >> wrote: >> >>> Hi Devs, >>> >>> I'm trying to connect to the Salesforce Rest API using Salesforce Rest >>> Connector. >>> Please find the sample request URL send to retrieve the authorization >>> code directly from SFDC. >>> >>> https://login.salesforce.com/services/oauth2/authorize?response_type= >>> *code*&client_id=<your_client_id>&redirect_uri=<your_redirect_uri> >>> >>> Does anyone have an idea of fetching authorization code from ESB itself >>> >>> Best Regards, >>> Shanika Nishani >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Shakila Sasikaran >> Software Engineer >> Mobile :+94 (0) 77 526 6848 >> [email protected] >> WSO2, Inc. >> lean . enterprise . middleware >> http://www.wso2.com/ >> > > -- Shakila Sasikaran Software Engineer Mobile :+94 (0) 77 526 6848 [email protected] WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
