Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Experts,
I am able to create a SalesforceConnection using 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":"audience is invalid"}
I followed the steps exactly mentioned here:
https://help.talend.com/reader/4cgA8~D~pdi5biHRfSvg_Q/ZoXS~zBdrcuQAx427Yv6Gw
Please help me to resolve this.
Here are the steps I have performed : (Talend Documentation)
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:
Advanced setting : Salesforce Url :https://test.salesforce.com/services/oauth2
Thank you
Hello,
Did you create your own connected app required by JWT Flow in Salesforce?
We have recheck with the related documentation step by step and it works from our end.
Best regards
Sabrina
Thanks for checking this Sabrina.
Yes I created my own connected app same as mentioned in the steps. My problem is I am able to connect to production Salesforce without issue but having problem when trying to connect to a Sandbox environment.
Thanks
Thank you Harry
Hello Sabrina, please check if you can connect to a salesforce sandbox using OAuth.
Hello,
@samT wrote:
Hello Sabrina, please check if you can connect to a salesforce sandbox using OAuth.
I don't have a salesforce sandbox and will check it with our Dev and IT to see if it is possible to have a salesforce sandbox testing environment.
Best regards
Sabrina
Sabrina,
Do you have update for this issue. I am migrating talend to 7.2.1. I got the same error while using JSON web Token Flow to do OAUTH against SF sandbox.
Thank you!
Hello,
Talend does not support sandbox audience in this V 7.1 version of the tSalesforceConnection component. So, you can't connect to a sandbox instance using the JWT Flow.
This is permanently fix in Talend 7.2.1
Or try to use the other two available authentication methods Basic or OAuth (Implicite) to connect to Sandbox.
Best regards
Sabrina