Plaza 365
Plaza 365

No results found for your search

RegisterLog in

3

Visit article

#al

#codeunit

#oauth2

Dynamics 365 Business Central

Category

Nov 9, 2024

Published date

Text

Article Type


AI Summary

  • The article discusses the use of OAuth 2.0 in AL with SecretText for Dynamics 365 Business Central.
  • Basic Auth access keys for Business Central Online have been removed with the Business Central 2022 release wave 1, prompting a transition to OAuth 2.0.
  • The introduction of the SecretText Data type in Business Central 2023 wave 2 enhances security in OAuth 2.0 authentication.
  • The article provides a step-by-step guide on setting up OAuth 2.0 in Azure Portal, including adding permissions and generating client secrets.
  • Code samples demonstrate how to acquire OAuth tokens and make API calls using OAuth 2.0 in AL, emphasizing the use of SecretText for improved security.
  • Additional code examples showcase how to retrieve data from environments and companies within Business Central using OAuth 2.0 in AL.
  • The article offers templates for calling endpoints with OAuth tokens and provides test videos and source code links for reference and further customization.
  • A general method without using codeunit 501 OAuth2 is also mentioned, although not recommended for optimal security.

Registered users can view the full text for FREE!

Sign In Now!