felixlindstrom / python-salesforce-api

Python Salesforce API wrapper made easy
MIT License
35 stars 15 forks source link

SOAP auth overwrites instance URL #21

Open 54sledgehammer45 opened 3 years ago

54sledgehammer45 commented 3 years ago

https://github.com/felixlindstrom/python-salesforce-api/blob/37ed67bc46648a102c74f5d6fec0f45a9db79601/salesforce_api/login.py#L101

This creates a bug with reverse proxies or firewalled environments that specifically whitelist certain URLs.

Using the existing instance_url to make the call to plain_access_token(instance_url=instance_url,...) would fix it.