Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

What's the name of authentication system of the CRM dynamics Web API ?

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I'm trying to figure out what's the name of the authentication system used by the CRM Web API ? I'm asking that because i have successfully been authenticated with my Web Api using C# because i have found a lot of samples over the internet. And because .NET framework made it easy for me (with helper class) :

AuthenticationParameters ap = AuthenticationParameters.CreateFromResourceUrlAsync(_apiUri).Result;
var creds = new ClientCredential(_clientID, _clientSecret);
AuthenticationContext authContext = new AuthenticationContext(_autorithy   _tenantID);
var token = authContext.AcquireTokenAsync(ap.Resource, creds).Result.AccessToken;

So from what i know i had to firstly authenticate myself to the Microsoft Authority : https://login.microsoftonline.com/ to retrieve a token and then use that token to do requests using a HTTPCLIENT.

But what's the name of that thing ? Because now i have to do the same thing using PowerBuilder which is more harder because i don't have class like AuthenticationParameters or ClientCredential etc ...

I guess i can't use credentials (login/password) i have to use keys i got from Azure. Is it possible to have a curl sample or postman sample to call the authority and get the token using clientSecret, clientId, TenantI, authority ...

Thank you for ready me.

  • erhan.keskin Profile Picture
    erhan.keskin 2,253 on at
    RE: What's the name of authentication system of the CRM dynamics Web API ?

    Hi,

    OAuth Protocol

    https://oauth.net/2/

    Is this what you are looking for? https://www.cdata.com/kb/tech/dynamicscrm-jdbc-powerbuilder.rst

    Regards,

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: What's the name of authentication system of the CRM dynamics Web API ?

    Hello,

    You can start from here - docs.microsoft.com/.../authentication

  • Shirro Profile Picture
    Shirro 25 on at
    RE: What's the name of authentication system of the CRM dynamics Web API ?

    Hello

    Thank you for your answer. So it's available only in .NET Framework. Is it possible to authenticate to the CRM API using another technologie than C# .NET like PowerBuilder ?

    Thank you.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: What's the name of authentication system of the CRM dynamics Web API ?

    Hello,

    It's ADAL - searchwindowsserver.techtarget.com/.../Microsoft-Azure-Active-Directory-Authentication-Library-ADAL

    Good luck.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans