web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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
    11,423 Super User 2026 Season 1 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 748 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 351 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans