Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Authenticating using authorization code flow on non-azure authorization server

(0) ShareShare
ReportReport
Posted on by 5

Hi all

I am trying to create an integration between business central cloud and another cloud platform and need to send API calls from BC to the other platform.
The only authentication flow they allow is oauth 2 authorization code flow and I don't know how to implement it in Business central.

The thing is that there are plenty of blog posts and documentation that describe how you can authenticate on azure, but not on other platforms.

I've tried to use the Oauth2 codeunit with AcquireTokenByAuthorizationCode and this opens a pop-up to let the user log in as expected but then just throws an error.

pastedimage1669986029214v1.png
This procedure doesn't ask for a token endpoint so I have no clue what BC is doing with the code that is returned from this. I suspect it tries to get a token from azure using the returned code, which of course won't work.

Any help would be appreciated

  • Suggested answer
    DAnny3211 Profile Picture
    9,280 Moderator on at
    RE: Authenticating using authorization code flow on non-azure authorization server

    hi

    look this

    www.youtube.com/watch

    DAniele

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans