• Sam T
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hellow experts,

I am getting below error while trying to establish the Oauth connection (JWT) between Talend and Salesforce :

RuntimeException: HTTP status:400 - Bad Request message:
{"error":"invalid_grant","error_description":"audience is invalid"}

I have followed the steps mentioned in the below link for creating Connected App in Salesforce.

https://developer.salesforce.com/docs/atlas.en-us.210.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_connected_app.htm

Please note I am able to connect using basic method which uses my username, password and security token.

Problem is when I try to setup an OAuth connection.

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=[Consumer Key]&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

Please help. Any information would be a great help.

Cheers
 
  • December 03, 2018
  • Like
  • 0
Hellow experts,

I am getting below error while trying to establish the Oauth connection (JWT) between Talend and Salesforce :

RuntimeException: HTTP status:400 - Bad Request message:
{"error":"invalid_grant","error_description":"audience is invalid"}

I have followed the steps mentioned in the below link for creating Connected App in Salesforce.

https://developer.salesforce.com/docs/atlas.en-us.210.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_connected_app.htm

Please note I am able to connect using basic method which uses my username, password and security token.

Problem is when I try to setup an OAuth connection.

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=[Consumer Key]&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

Please help. Any information would be a great help.

Cheers
 
  • December 03, 2018
  • Like
  • 0