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