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

added id and instance_url to ApiSession #71

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

added id and instance_url to ApiSession #71

wants to merge 1 commit into from

Conversation

xgp
Copy link

@xgp xgp commented Sep 26, 2018

According to https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_web_server_oauth_flow.htm the instance_url and id are returned when a request is made for an access token in exchange for an authorization code (your Auth.completeOAuthWebServerFlow method that returns an ApiSession).

Although not required for further requests to the Force.com REST API, these may be useful in other actions (e.g. directing the user to their connected apps management page, identifying the pod for their instance, identifying and querying for more information about the user, etc.). So it may be useful to expose these rather than lose them.

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.

1 participant