Connect Talend to Salesforce using OAuth JWT Flow

Four Stars

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"}

image.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.

Moderator

Re: Connect Talend to Salesforce using OAuth JWT Flow

Hello,

400 - Bad Request message problem is with URL.

Are you trying to connect SalesForce production environment or sandbox?

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: Connect Talend to Salesforce using OAuth JWT Flow

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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog