I have a nodejs project that is using adal-node (www.npmjs.com/.../adal-node) to authenticate via OAuth2 to Dynamics CRM. I have successfully gotten the authorizationUrl, then posted the code to get the accessToken. However, this last response does not return an instanceUrl. So I've been scowering the MSDN pages online for documentation on how to use the accessToken to obtain the correct organization instance Uri. I've tried this (msdn.microsoft.com/.../mt607485.aspx) and just get a 401 "Authorization has been denied for this request" response - using my unique org name of course. Maybe I'm formatting this request improperly? Can someone kindly direct me to some documentation on how to use the valid accessToken I've obtained to retrieve the organization instance Uri for this user? Thanks.
Screen Shot: s15.postimg.org/.../2016_12_01_09_29_25_am.png