Hello. I'd like to use the Web API to send contacts to various MS Dynamics accounts who have given my web application permission. I've done this with other CRMs but have been struggling to get started with this on MS Dynamics.
I've created an app in Azure AD as described here. I've been experimenting with the ADAL code here which calls AcquireToken(). When doing that, I'm prompted to give permission to the app which works, but then after that I get the error message: AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'.
A lot of the code examples for this assume that you have a username and password for the user which I won't have. When I've done authentication with other CRMs, normally the person is redirected to an OAuth web page where they grant my app permissions, which returns a code I then use to make a separate server call, to obtain access and refresh tokens. That's what I'd like to do here although I'm open to doing it differently for Dynamics. If I can get authentication working, my plan is to use the Web API shown here.
Any pointers in the right direction would be very appreciated!
Many thanks,
Ben
*This post is locked for comments