5

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

What is the correct approach? Can the authentication be done with ADAL.js or what are the alternatives?

Jer
  • 383
  • 3
  • 17

1 Answers1

0

The document metioned in the post shows the use of ADAL.net which use the Oauth Auth code flow to access the web API. ADAL.js on the other hand is designed to be used with SPAs and uses the Oauth implicit grant.

The older ADFS versions don't support the implicit grant flow(which is what the Github issues referred to). The ADFS 2016 has the support for implicit grant. Here is a documented sample of using ADAL.js against ADFS 2016.

Navya Canumalla
  • 507
  • 2
  • 7