Authenticate Xero API call using oAuth 1.0

Four Stars

Authenticate Xero API call using oAuth 1.0

Hey All,

I am currently struggling on how to connect the the Xero Accounting API via talend, There is no option for oAuth 1.0 in the tRESTClient and am currently stuck to on how I should do this...

Any ideas?

Moderator

Re: Authenticate Xero API call using oAuth 1.0

Hello,

We have OAuth 1.0 client utilities in CXF so one option is to use either tREST or tRESTClient with tJava sitting in from of tREST and preparing an OAuth 1.0 signature . tREST would simply pass along HTTP Authorization headers with all OAuth 1.0 parameters listed. 

Here is a related topic:https://community.talend.com/t5/Design-and-Development/resolved-OAuth-1-0a-with-tRESTClient-tRESTRes...

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Authenticate Xero API call using oAuth 1.0

I have never used camel components... Is there a guide on how to? or an example of how to configure an oAuth1.0 using one?

Four Stars

Re: Authenticate Xero API call using oAuth 1.0

From what I am aware from searching online I will require Talend ESB to use CXF/Camel components... I am using Talend DI is there any way to do oAuth1.0a using Talend DI?

Moderator

Re: Authenticate Xero API call using oAuth 1.0

Hello,

The tRest and tRestClient components are available in data integration product.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Authenticate Xero API call using oAuth 1.0

Yes... I am aware. This is where the issue is happening, I cannot figure out how to generate a valid oAuth1.0a signature using Talend components. I have even tried writing a routine that does this with no help. 

oAuth1.0a is a pretty old method of obtaining application access but there is no content available on how to get this working in Talend.

For example for Public applications you will require a 3-legged oAuth approach - this requires generating a new token every 30 minutes.

Private application is 2-legged oAuth - This will avoid regenerating a token every 30 minutes but will need to create a valid oAuth1.0 Authorization header to do this..

I was just hoping there would be a component or some sort of repository on how to get this working in Talend.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.