AccessToken: Parse to determine InstanceID?

jeff00seattle
Kilo Guru

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

 

 

 

0 REPLIES 0