amazon-connect / amazon-connect-salesforce-lambda

Apache License 2.0
45 stars 34 forks source link

Token request fails in production for Government Cloud org #42

Open araustin opened 2 years ago

araustin commented 2 years ago

The code in salesforce.py sets login.salesforce.com as the url for retrieving a token. However, that domain does not work for orgs in the Government Cloud.

This article explains that login.salesforce.com does not work for Government Cloud instances https://help.salesforce.com/s/articleView?id=000331188&type=1

Examining the code, It seems I can work around the issue by setting the production flag to false, but I don't feel it's a good idea to rely on that working in the long term.

blee-amzn commented 2 years ago

Thank you for opening this ticket, I will open an internal bugfix ticket and present it to my team.

Cheers!