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

Calling an Active directory authenticated Web API using Ajax in CRM Portal

$
0
0

I have deployed a Web API to Azure App service and I secured it with active directory authentication. I need to call this Web API On-Change of a field in my portal i.e. CRM Portal. (My CRM portal also allows only Active directory authenticated users to log in.) The way I have thought is I will do an Ajax call On-Change of the field to get the response. However I am unable to get the token itself. I am using adal.min.js as a library for supporting active directory authentication. I am easily able to get the response when calling a No Authentication Web API this way.

What should I be doing to get the response from an AD authenticated API from JQuery AJAX call in CRM Portal?


Viewing all articles
Browse latest Browse all 79901


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