Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

OAuth2 accessToken to obtain organization instance Uri

$
0
0

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


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>