<?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 [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”} in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244976#M30968</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Community ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I am facing an error while trying to establish the Oauth connection (JWT) between talend ETL tool and salesforce :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;runtime exception https status 400-bad request message {"error":"invalid_grant","error_description":"audience is invalid"}&lt;/PRE&gt;
&lt;P&gt;Here are the steps I have performed : (Talend Documentation)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Downloaded the self signed certificate from salesforce.&lt;/LI&gt;
&lt;LI&gt;Created the connected app&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Used following url to authenticate the user&lt;/P&gt;
&lt;P&gt;&lt;A href="https://test.salesforce.com/services/oauth2/authorize" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/authorize&lt;/A&gt;? &amp;lt;client_id&amp;gt;=&amp;amp; redirect_uri=&lt;A href="https://test.salesforce.com/services/oauth2/success&amp;amp;" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/success&amp;amp;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;response_type=code&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Settings on talend connection:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Name :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Name of the Connection&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Connection Type :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;oAuth&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Oauth2 flow type :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Json web token Flow&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Issuer :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;client_Id from connected app&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Subject :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Salesforce userName&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Expiration in time :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;600&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keystore :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Certificate from salesforce&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keystore Password :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;password for certificate&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Certificate alias :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Name of the certificate.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Advanced setting :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Salesforce Url :&lt;/STRONG&gt;&lt;A href="https://test.salesforce.com/services/oauth2" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:18:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:18:39Z</dc:date>
    <item>
      <title>[Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244976#M30968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Community ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I am facing an error while trying to establish the Oauth connection (JWT) between talend ETL tool and salesforce :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;runtime exception https status 400-bad request message {"error":"invalid_grant","error_description":"audience is invalid"}&lt;/PRE&gt;
&lt;P&gt;Here are the steps I have performed : (Talend Documentation)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Downloaded the self signed certificate from salesforce.&lt;/LI&gt;
&lt;LI&gt;Created the connected app&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Used following url to authenticate the user&lt;/P&gt;
&lt;P&gt;&lt;A href="https://test.salesforce.com/services/oauth2/authorize" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/authorize&lt;/A&gt;? &amp;lt;client_id&amp;gt;=&amp;amp; redirect_uri=&lt;A href="https://test.salesforce.com/services/oauth2/success&amp;amp;" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2/success&amp;amp;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;response_type=code&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Settings on talend connection:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Name :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Name of the Connection&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Connection Type :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;oAuth&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Oauth2 flow type :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Json web token Flow&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Issuer :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;client_Id from connected app&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Subject :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Salesforce userName&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Expiration in time :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;600&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keystore :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Certificate from salesforce&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Keystore Password :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;password for certificate&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Certificate alias :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Name of the certificate.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Advanced setting :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Salesforce Url :&lt;/STRONG&gt;&lt;A href="https://test.salesforce.com/services/oauth2" target="_blank" rel="nofollow noreferrer noopener noreferrer"&gt;https://test.salesforce.com/services/oauth2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244976#M30968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244977#M30969</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please take a look at this &lt;A href="http://pcsupport.about.com/od/findbyerrormessage/a/400error.htm" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;page&lt;/A&gt; to know more about 400 bad request error and check the error in the URL as suggested? &lt;/P&gt; 
&lt;P&gt;Feel free to let us know if it is OK with you.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 02:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244977#M30969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-19T02:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244978#M30970</link>
      <description>&lt;P&gt;Hello praveenbonalu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing similar problem when trying to do a test connection to the Salesforce sandbox. Please let me know how did you resolve this. Thanks Sam&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244978#M30970</guid>
      <dc:creator>samT</dc:creator>
      <dc:date>2018-11-30T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244979#M30971</link>
      <description>&lt;P&gt;Hi Sabrina, Please can you help me on this one. Exact error I am getting and having seen the 400 bad request page not getting anything where could be the problem. I understand the problem is with URL. We are having URL in 2 places one mentioned in the Salesforce connected apps for the callback url. and another one in the advance option of the salesforce connection as originally mentioned in this post.&lt;/P&gt;&lt;P&gt;not sure which url is having problem as both can be access by the user id.thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 11:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244979#M30971</guid>
      <dc:creator>samT</dc:creator>
      <dc:date>2018-11-30T11:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244980#M30972</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.qlik.com/s/profile/0053p000007LOpbAAG"&gt;@samT&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Sorry for our silence. We do our best to answer as many posts as possible.&lt;/P&gt; 
&lt;P&gt;We have replied to your another topic:&lt;A title="https://community.talend.com/t5/Design-and-Development/Talend-DI-7-0-to-Salesforce-connection-using-Oauth-JWT-audience/m-p/143509/highlight/false#M88542" href="https://community.qlik.com/s/feed/0D53p00007vClBpCAK#M88542" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Talend-DI-7-0-to-Salesforce-connection-using-Oauth-JWT-audience/m-p/143509/highlight/false#M88542&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Could you please have a look at it?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 06:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244980#M30972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-05T06:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244981#M30973</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We faced the same issue a few weeks ago and we found the reason of this as you can see here:&amp;nbsp;&lt;A href="https://github.com/Talend/components/issues/1423" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Talend/components/issues/1423&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a part of the component code which handles the JWT authentication. The audience URL seems to be hardcoded for a Production environment and there is no way to make it works with a Sandbox environment. So we used a basic auth for sandbox and a JWT auth for the production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 11:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244981#M30973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-06T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: [Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244982#M30974</link>
      <description>&lt;P&gt;Hello Harry, thanks for your reply.&lt;/P&gt;&lt;P&gt;Problem is without testing the Oauth in sandbox I cannot deploy the job in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't&amp;nbsp;find&amp;nbsp;&lt;SPAN&gt;SalesforceJwtConnection.java in the Talend studio installed folder. Please let me know if you manage&amp;nbsp;to find any workaround for Sandbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 10:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-SF-Connection-JWT-runtime-exception-https-status-400-bad/m-p/2244982#M30974</guid>
      <dc:creator>samT</dc:creator>
      <dc:date>2018-12-07T10:29:35Z</dc:date>
    </item>
  </channel>
</rss>

