We are working on integrating our API's with Business Central. We need Business Central to hit our OAuth server to get the token and make the authenticated request. We are having an extremely hard time finding sample code to do this on the web. One of the only examples we found was here: https://github.com/microsoft/BCTech/blob/master/samples/OAuth2Flows/TestOAuth2Flows.Page.al
But the problem with that is there is no mention of an "audience" parameter. We need to pass an "audience" to our OAuth server to correctly authenticate. Does anyone know where we can find good relevant code to do this? Or has anyone done this and can give some direction?
Thanks!
Mike