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?
*This post is locked for comments