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

Missing instance_url and id in ApiSession #70

Open
xgp opened this issue Sep 26, 2018 · 2 comments
Open

Missing instance_url and id in ApiSession #70

xgp opened this issue Sep 26, 2018 · 2 comments

Comments

@xgp
Copy link

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). Is it possible to add those fields to ApiSession? Would you accept a PR that does this? Thanks!

@xgp
Copy link
Author

xgp commented Sep 26, 2018

#71

@jesperfj
Copy link
Owner

jesperfj commented Mar 19, 2021

instance_url is available in ApiSession.getApiEndpoint(). id is not currently available but I believe it's just a pointer to the same resource as what you get with ForceApi.getIdentity(). Can you confirm?

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

No branches or pull requests

2 participants