Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the original instance_url for soap auth #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

54sledgehammer45
Copy link

The explicitly set server/instance URL was being overriden by what the server returned.
There are however probably good reasons for the original URL to be set by the developer.
Ignoring the developer's decision without giving an option to override,
forces the developer to copy-paste and rewrite code that uses the method.

This commit makes that unnecessary.

Fixes #21 : SOAP auth overwrites instance URL

@felixlindstrom
Copy link
Owner

Hello @54sledgehammer45! Thank you for the PR!

This is a very valid point! I would like to test this before merging though.

As I remember, the reason I went with this solution is that you might use test.salesforce.com as your initial instance-url, but then once logged in, you're provided with your personal instance url.

I will confirm this :)

The explicitly set server/instance URL was being overriden by what the server returned.
There are however probably good reasons for the original URL to be set by the developer.
Ignoring the developer's decision without giving an option to override,
 forces the developer to copy-paste and rewrite code that uses the method.

This commit makes that unnecessary.

Fixes felixlindstrom#21 : SOAP auth overwrites instance URL
@54sledgehammer45
Copy link
Author

Hey @felixlindstrom,

My tests weren't extensive enough and I just tested that it could login. Other calls to the endpoints were failing. That's fixed in the last force-push.

I wasn't aware of test.salesforce.com. We use the personal test instance URL directly which is probably why we don't see the error.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SOAP auth overwrites instance URL
2 participants