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

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans