<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] OAuth 1.0a with tRESTClient / tRESTResponse / tRESTRequest in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216425#M12431</link>
    <description>Hi 
&lt;BR /&gt;I'd consider using CXF WebClient in this case, pity the existing OAuth1.0a client utility we ship does not offer a support for the RSA signatures, I'll update the code: 
&lt;BR /&gt; 
&lt;A href="https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java;h=8155cb350ba8d3c9b27fe2cf542a71ca901a0694;hb=HEAD#l123" rel="nofollow noopener noreferrer"&gt;https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java;h=8155cb350ba8d3c9b27fe2cf542a71ca901a0694;hb=HEAD#l123&lt;/A&gt; 
&lt;BR /&gt;Have a look at the code, you can just create a header, then do 
&lt;BR /&gt;WebClient wc = WebClient.create("someaddress"); 
&lt;BR /&gt;wc.header("Authorization", oauth1Header); 
&lt;BR /&gt;wc.get(); 
&lt;BR /&gt;//etc 
&lt;BR /&gt;as I said, I'll update the utility code in meantime to make it simpler 
&lt;BR /&gt;HTH, Sergey</description>
    <pubDate>Fri, 19 Dec 2014 12:51:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-19T12:51:53Z</dc:date>
    <item>
      <title>[resolved] OAuth 1.0a with tRESTClient / tRESTResponse / tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216424#M12430</link>
      <description>&lt;P&gt;Hi Folks,&lt;BR /&gt;I have a need to integrate with a REST API. I tried using a tJavaFlex component and dumped some java in like:&lt;BR /&gt;OAuthConsumer consumer = new OAuthConsumer(null, context.consumerKey, null, null);&lt;BR /&gt;consumer.setProperty(RSA_SHA1.PRIVATE_KEY, context.privateKey);&lt;BR /&gt;consumer.setProperty(OAuth.OAUTH_SIGNATURE_METHOD, OAuth.RSA_SHA1);&lt;BR /&gt;OAuthAccessor accessor = new OAuthAccessor(consumer);&lt;BR /&gt;accessor.accessToken = context.consumerKey;&lt;BR /&gt;accessor.tokenSecret = context.consumerSecret;&lt;BR /&gt;OAuthClient client = new OAuthClient(new HttpClient3());&lt;BR /&gt;OAuthMessage response = client.invoke(accessor, OAuthMessage.GET, context.endpointUrl + "contacts", null);&lt;BR /&gt;... but that just gives me an input stream, It feels wrong to go calling JAXB to convert it into an XML document and map it to a bean.&lt;BR /&gt;Surely there's a better way ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216424#M12430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OAuth 1.0a with tRESTClient / tRESTResponse / tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216425#M12431</link>
      <description>Hi 
&lt;BR /&gt;I'd consider using CXF WebClient in this case, pity the existing OAuth1.0a client utility we ship does not offer a support for the RSA signatures, I'll update the code: 
&lt;BR /&gt; 
&lt;A href="https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java;h=8155cb350ba8d3c9b27fe2cf542a71ca901a0694;hb=HEAD#l123" rel="nofollow noopener noreferrer"&gt;https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java;h=8155cb350ba8d3c9b27fe2cf542a71ca901a0694;hb=HEAD#l123&lt;/A&gt; 
&lt;BR /&gt;Have a look at the code, you can just create a header, then do 
&lt;BR /&gt;WebClient wc = WebClient.create("someaddress"); 
&lt;BR /&gt;wc.header("Authorization", oauth1Header); 
&lt;BR /&gt;wc.get(); 
&lt;BR /&gt;//etc 
&lt;BR /&gt;as I said, I'll update the utility code in meantime to make it simpler 
&lt;BR /&gt;HTH, Sergey</description>
      <pubDate>Fri, 19 Dec 2014 12:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216425#M12431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T12:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OAuth 1.0a with tRESTClient / tRESTResponse / tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216426#M12432</link>
      <description>The CXF code has been updated on the trunk and branches so you might want to give it a go in few days. Alternatively, if you fine with using WebClient then 
&lt;BR /&gt;you can use a typed API if preferred, something like WebClient.get(DOM4JDocument.class) would give you an instance of DOM4J response, etc</description>
      <pubDate>Fri, 19 Dec 2014 13:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OAuth-1-0a-with-tRESTClient-tRESTResponse-tRESTRequest/m-p/2216426#M12432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T13:51:03Z</dc:date>
    </item>
  </channel>
</rss>

