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 :
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.

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
  • Shirro Profile Picture
    25 on at

    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
    84,331 Most Valuable Professional on at

    Hello,

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

  • erhan.keskin Profile Picture
    2,253 on at

    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,

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans