Last time we talked about how to setup OAuth2 to connect to Business Central API. This time, let’s talk about how to test the connection. We will use two methods: Postman and REST Client.
Tag Archives: OAuth2
How to get Access Token in Business Central using OAuth2 Codeunit
Hello, in view OAuth2 authentication method is currently popular because as of October 1, 2022, it is mandatory to connect to Business Central web services, I wanted to make a post on how to use this authentication method but through the language AL.
Business Central OAuth2.0 Token Based Authentication
Business Central OAuth2.0 Token Based Authentication
Testing Business Central Online APIs using Postman
This post explains how to test Microsoft Dynamics Business Central Online APIs using Postman with complete details.
Postman is a very useful tool for developers to test various types of HTTP requests, including REST APIs. Business Central supports REST APIs in both On-Premises and Online environments. To test Business Central Online APIs, client application must pass through OAuth2 authentication.
Business Central oAuth2 Authentication
Steps to activate the OAuth2 authentication method, this type of connection can be used to connect to Business Central WebServices-APIs; it will soon be the only method available as access with WebService key is deprecated.
The system to access the exposed services uses a token issued by the access procedure (see details at the links below), it is possible to use different ways to get the token released.
Generic OAuth2 Library for Business Central
Generic OAuth2 Library for Business Central is to acquire Access Token from Azure AD, Google, Facebook etc. OAuth is most commonly used authorization method across all platforms. Acquiring Access Token is a little difficult in Business Central, though there is a Codeunit called OAuth2 available in the system. To help the Business Central developers’ community, I thought of creating this generic library for OAuth2, so that developers can use this in their applications.