Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

API Authentication

Posted on by 189
Hi,
 
together with one of our customers we want to share data from Microsoft NAV to MS CRM (both on-premise).
 
Now we're struggling with the authentication. From an C# application this part is no problem, using the Microsoft SDK and tooling classes, and is as easy as:
using (var client = new CrmServiceClient(new NetworkCredential(/<Username>/, /<Password>/, /<Domain>/), /<Base-Url>/, //, /<Org>/, useSsl: true)){    if (client.IsReady)    {        var who = client.Execute(new WhoAmIRequest());    }}
How would we go about it without SDK/tooling? Let's say if we tried with HttpClient or from JS or something else, would that be possible?
 
We're using ADFS, so I guess Basic Authentication (as described here: Authenticate to Dynamics 365 Customer Engagement with the Web API (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Learn) is not possible? At least our tests were not successful.
 
Most examples I come about are mentioning a clientId, but the SDK-example doesn't use one either, so I think I'm missing something?
 
If anyone has an idea or working example, please let me know.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans