Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Connect Talend to Salesforce using OAuth JWT Flow

I am able to create a SalesforceConnection using the Basic method. But getting below error when I try to create a connection using type OAuth.

RuntimeException: HTTP status:400 - Bad Request message:

{"error":"invalid_grant","error_description":"invalid assertion"}

0683p000009M5zv.png

 

I followed the steps exactly mentioned here:

https://help.talend.com/reader/4cgA8~D~pdi5biHRfSvg_Q/ZoXS~zBdrcuQAx427Yv6Gw

I have used Sandbox and Advanced setting: Salesforce Url: https://test.salesforce.com/services/oauth2

Please help me to resolve this.

Labels (3)
11 Replies
Anonymous
Not applicable
Author

Hello,

400 - Bad Request message problem is with URL.

Are you trying to connect SalesForce production environment or sandbox?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi,

 

I am getting above error while connecting to the SalesForce Sandbox environment. I have used the 

Advanced setting: Salesforce Url: https://test.salesforce.com/services/oauth2

 

I have also tried the connection with the SalesForce production environment and it got successfully connected to the Production. For the connection with the Production, I have used the Advanced setting: Salesforce Url: https://login.salesforce.com/services/oauth2

 

Please look into it to resolve this issue on the sandbox environment.

reinier1
Contributor III
Contributor III

Was this issue ever resolved? How? I am having the exact same issue.

reinier1
Contributor III
Contributor III

I found this on the SalesForce website: https://help.salesforce.com/articleView?id=000334987&type=1&mode=1

 

 

reinier1
Contributor III
Contributor III

I think, maybe this might happen if you did not set the certificate of the application on the salesforce side but you are loading the keystore on the client side. I got this working eventually.

LGTLEON
Contributor
Contributor

Hi! I´m having the same issue. How did you resolve it? I really appreciate any help. Thanks.

Anonymous
Not applicable
Author

Hello,

Could you please clarify in which Talend version/edition you are?

There was Salesforce sandbox connection issue with OAuth JWT Flow before talend 7.2.1.

Best regards

Sabrina

LGTLEON
Contributor
Contributor

Hello! I´m working with Talend Open Studio for Data Integration 7.3.1. Could there still be any issue with SalesForce connection? thanks for your quick response.

Anonymous
Not applicable
Author

Hello,

This issue was fixed in V 7.2.1.

Could you please let me know if you have reviewed the following document and followed these steps - How to connect to Salesforce using OAuth JWT Flow -

https://help.talend.com/r/en-US/7.3/salesforce/connecting-to-salesforce-using-oauth-jwt-flow

Best regards

Sabrina