Dynamics 365 Business Central: clarification about OAuth2 authentication in v20

In a recent event we had with the partners community on the new Dynamics 365 Business Central 2022 Wave 1 release (version 20) we received some questions and requests of clarifications about Basic authentication deprecation.

The reason of this quick post is trying to clarify what happens on Basic Authentication in Dynamics 365 Business Central SaaS from version 20. As you know, Microsoft announced time ago that Basic authentication is deprecated on the SaaS environment and now you need to start using the OAuth 2.0 authorization protocol.

Simply speaking, OAuth 2.0 is a standard authorization protocol designed to allow an application to access resources hosted by other applications on behalf of a user. OAuth 2.0 provides consented access and restricts actions of what the client app can perform on resources on behalf of the user, without ever sharing the user’s credentials. OAuth 2.0 uses Access Tokens (that essentially are data that represents the authorization to access resources on behalf of the end-user) and scopes (used to specify exactly the reason for which access to resources may be granted). OAuth flows are essentially processes supported by OAuth for authorization and resource owners for authentication. There are OAuth flows enabling users to enter credentials via an OAuth login prompt directly into the app, or even supporting authentication without user involvement for back-end systems.

But what about the future of Basic authentication and OAuth 2.0 in Dynamics 365 Business Central? Let’s try to fix some points…

They 4 key points to remember are the following:

  1. Basic Authentication is deprecated on version 20 and it will be unsupported started from now (no support requests).
  2. New tenants created on version 20 cannot use Basic authentication.
  3. Existing tenants upgraded to version 20 can continue to use Basic authentication.
  4. Basic authentication will be disabled for everyone on Dynamics 365 Business Central version 21.

Despite the possibility of point 3, please upgrade all your integrations to OAuth as soon as possible. There’s no valid reasons to wait, OAuth is quite easy to setup and absolutely more secure and future proof.

6 Comments

    1. This applies to BC connections (external apps connecting to BC). For BC connecting to external apps, the authentication protocol depends on what the external app requires.

      Like

  1. Hi, for SOAP codeunits with multiple methods and parameter passing, such as xmlport, how can you use OAuth2 authentication, given that the WSDL generated by BC doesn’t expect anything other than Basic?

    Like

  2. Hi Demiliani
    have you heard anything about that Microsoft recently paused the rollout of v20 and after that Basic Authentication has been removed, and now only OAuth is supported?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.