Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

API Integration Using OAuth 2.0

Posted on by 571
We are using the latest BC 365 SaaS version. Previously when using on-prem I was able to write some C# console apps to connect to the BC 365 OData endpoints I exposed. Using Windows authentication. These were fairly automated, which was the intent, since they were automated integration apps I was working on.
 
Now that we are using BC 365 SaaS I need to access some of these OData endpoints. I can obviously succeed by going /the long way./ I have my Azure app registration in place, can go through the OAuth2 process to get the access token to use in Postman, etc. That's all fine and dandy.
 
What I'm wondering is if there is some existing NuGet or GitHub project that wraps most of these steps so I can use them in an automated C# console app. Or if there is some mechanism in BC 365 SaaS I can use to register my Azure app registration in order to gain a longer-lived access token. Any suggestions?
  • Greg Kujawa Profile Picture
    Greg Kujawa 571 on at
    API Integration Using OAuth 2.0
  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 50,662 Super User on at

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans