How to authenticate with IFD instance of MS CRM 2016 using javascript?

I want to authenticate against our IFD CRM 2016 instance using Javascript to make some web API calls. How can i do this? According to MS documentation, this can be done using ADAL.js, but the answer to this question about github says that the IFD / ADFS script is not supported by ADAL.js.

What is the right approach? Is it possible to authenticate using ADAL.js or what alternatives?

+5
source share
1 answer

The document noted in the message shows the use of ADAL.net, which uses the Oauth Auth stream to access the web API. ADAL.js, on the other hand, is intended for use with SPAs and uses an Oauth implicit grant .

Older versions of ADFS do not support the implicit flow of grants (as stated in Github's answers). ADFS 2016 supports implicit grant support. Below is a documented sample of using ADAL.js for ADFS 2016.

0
source

Source: https://habr.com/ru/post/1247835/


All Articles