Hello Everyone,
Before jumping to what problem I am facing first I will walk through what I am currently trying to achieve.
I have RESTful web service running and it is used by my Android, iOS and web application, now I am trying to integrate my solution into Dynamics CRM. I want to reuse my RESTful web services to fetch all the analytic that is already stored in some backend database server, my RESTful web service need to authenticate with CRM that user who is requesting data is actually a valid user (means when requesting data user is actually a user he/she claims to be).
Currently I have solution for SalesForce which users access token which I can actually get from the SalesForce application inside SalesForce and not out side api request. Then I send that access token to my RESTful web service, RESTful web services calls verification services on SalesForce on the same user id and checks if access token is valid. Then request is served based on the result of the validation.
Now I am planning to implement similar solution for Dynamics CRM but some how I am not able to get the access token of the currently logged in user in online Dynamics CRM 2016 using JavaScript or C#.
Can anyone guide me in right direction to either get the access token or Authenticate a currently logged in user of CRM from my RESTful web services.
Thanks,
Ramnivas Indani
*This post is locked for comments