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.
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.
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=1Examining 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.