I have the sales module with Financials for Dynamics 365 Online and I am trying to access the Web API using the starter code below. I have entered my credentials according to this blog at: dynamicscrmcoe.com/using-new-web-api. There is another 3rd party application using the api successfully, so I am presuming everything in Dynamics is setup correctly. The only thing I have noticed is that the code below, from Feb 2017, is using version 2.2x of Microsoft.IdentityModel.Clients.ActiveDirectory. The current version is 3.17. If that is what's causing the problem, how do I correct the code so it will function properly? What am I missing?
Thanks!
Starter Code:
https://code.msdn.microsoft.com/CRM-Web-API-Basic-27fcbf2e
My Credentials:
*This post is locked for comments