web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How do I set up the HTTP Header to include the authentication credentials when I have to access a WEB API Restful resource using java script (or postman/fiddler) for a Microsoft Dynamics On-Premise instance?

(1) ShareShare
ReportReport
Posted on by

How do I set up the HTTP Header to include the authentication credentials when I have to access a WEB API Restful resource using java script (or postman/fiddler) for a Microsoft Dynamics On-Premise instance?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    You can use XMLHttpRequest and set the headers. Refer to this link

    stackoverflow.com/.../how-can-i-use-an-ajax-request-to-fire-webservice-calls-in-javascript

  • Community Member Profile Picture
    on at

    I am specifically looking for the header names that need to be passed in with a request for the authentication and authorization to succeed.(namely  username, password and domain, may be?)

  • Community Member Profile Picture
    on at

    Have you tried adding username, password same as it has added SOAPAction, Accept etc. ?

  • Community Member Profile Picture
    on at

    Would this apply to the Web API as of CRM 2016 (8.0) On-Premise? Or would it only work for the older SOAP service?

  • Community Member Profile Picture
    on at

    I have the same proble trying to use Postman and request WEB API 8.1 CRM 2016 (OnPrem), any clues?

  • Community Member Profile Picture
    on at

    It's taken me a long time to figure this out, but Dynamics CRM On Premise uses NTLM authentication. In Postman, this is as easy as selecting "NTLM Authentication [Beta]" as the authorization type and providing a username and password. Behind the scenes, this performs a 3 step handshake with an authentication server. This has been implemented in many server-side langauges (such node, python, etc.), but I haven't seen a library for client-side javascript. There is a Stack Overflow question that has a number of useful resources exploring that side of things though; you can find it here: https://stackoverflow.com/questions/18527749/javascript-ajax-ntlm-authentication . I hope that helps.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans