+ Start a Discussion
Praveen Kumar BonaluPraveen Kumar Bonalu 

[Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}

I am facing an error while trying to establish the Oauth connection (JWT) between talend ETL tool and salesforce :
runtime exception https status 400-bad request message {"error":"invalid_grant","error_description":"audience is invalid"}
Here are the steps I have performed :
  • Downloaded the self signed certificate from salesforce.
  • Created the connected app
  • Used following url to authenticate the user
         https://test.salesforce.com/services/oauth2/authorize? client_id=&     redirect_uri=https://test.salesforce.com/services/oauth2/success& response_type=code
Settings on talend connection:
  • Name : Name of the Connection
  • Connection Type : oAuth
  • Oauth2 flow type : Json web token Flow
  • Issuer : client_Id from connected app
  • Subject : Salesforce userName
  • Expiration in time : 600
  • Keystore : Certificate from salesforce
  • Keystore Password : password for certificate
  • Certificate alias : Name of the certificate.
  • Advanced setting : Salesforce Url :https://test.salesforce.com/services/oauth2
Talend Configuration
Raj VakatiRaj Vakati
Refer this link 

section name is 

How to connect to Salesforce using OAuth JWT Flow
Praveen Kumar BonaluPraveen Kumar Bonalu
Hi Raj Vakati ,

Thanks for your reply  .I have gone through the documentation in the Talend community,before posting the question on the community .

Can you please let me know ..If you have any other blogs to reslove the issue. Thanks for your time