AccessToken: Parse to determine InstanceID?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 11:16 AM - edited 10-25-2023 11:20 AM
Hello
In September, I posted, "How to gather the profile for an acquired AccessToken via an endpoint?"...
OAuth Access Token: Profile? Is there a way to determine its instance ID, scopes, and App?
In short, I sought an approach for what InstanceID was this AccessToken intended. The solution provided to gather AccessToken profile requires providing InstanceID:
GET https://<InstanceID>.service-now.com/oauth_token.do?sysparm_action=get&sysparm_oauth_token=<AccessToken>
All other providers that handle OAuth authentication, when requesting an AccessToken profile does not require knowing its AccountID, because that is returned in the profile response.
Is there a way to determine the InstanceID from an accessToken without using an endpoint that requires knowing the InstanceID?
Thank you