Technical Update Notice for BC Users Using Basic Authentication or a Web Access Key

Changes for Dynamics 365 Business Central that will remove the ability to authenticate using basic authentication or a web access key.

Table of Content

    Important update for Dynamics 365 Business Central Customers using basic authentication or web access keys. 

    For any cloud-based/SaaS implementations of Dynamics 365 Business Central, Microsoft will be rolling out changes region by region for Dynamics 365 Business Central that will remove the ability to authenticate to their services using basic authentication or a web access key.  Moving forward, Microsoft recommends using modern authentication (OAuth authentication).

    No changes are occurring to the authentication process for the on-premises version of Dynamics 365 Business Central;  this affects online Dynamics 365 Business Central only. You can find more information about these changes from Microsoft directly here.

    If the legacy Dynamics 365 Business Central SOAP connection is used,  those connections will need to be re-created and set up as an OData connection. Any integrations based on the SOAP connection will need to be re-created as well. If the OData connection is in use, the steps below can be followed to enable the new authentication method.

    Our Client Account Management Team at Velosio is here to help – reach out to your Account Manager directly or email if you are unsure who your account manager is.

    Business Leaders Guide to the New Digital AgeBusiness Leaders Guide to the New Digital Age

    Steps For Setting Up OAuth 2.0 For Business Central SAAS Tenant Environment

    The below is an example of configuring OAuth and testing it in POSTMAN. Addressing your specific application that utilized basic auth will be dependent on the specific application. Feel free to reach out to us on how to address your specific needs.

    1. Log-in to Azure Portal using your Business Central log-in ID
    2. Search for “App Registrations” and then click on New Registration
    3. Enter some value in Name field as shown in screenshot
    4. Please select the appropriate value from given 4 options for “Who can use this application or access this API?”. For example, here I have selected first option.
    5. Then enter the value of Redirect URI, for example in below screenshot we have entered
    6. Then navigate to “API Permissions”.
    7. Click on “Add a permission”
    8. Then select “Business Central and then click on “Delegated Permissions” and place check mark (Boolean TRUE) in all lines.
    9. Then click on “Application Permissions”
    10. Select all entries (Boolean TRUE)
    11. Click on “Add permissions”
    12. Next step is to “Grant admin consent to Contoso”
    13. Click on Yes, as shown in next screenshot
    14. Navigate to “Certificates & Secrets”
    15. Click on “New client secret”.
    16. Add a client secret
    17. Very Important: Copy & save the value as shown in below screenshot, this will be masked later on and required by POSTMAN. In the below screenshot “Su_91cA3Yz_1.Jsd4e8bP7syW_UkzFGGJ7” is the “Client Secret” in the terminology of POSTMAN.
    18. Navigate to Overview and make a note of Application (client) ID which will be used in POSTMAN.

    POSTMAN Part:

    1. Choose type as OAuth 2.0
    2. In “Add authorization data to” select “Request Headers”
    3. Click on “Configure new token”
    4. In “Token Name” enter the value that you entered while “App Registration”, example “Business Central”
    5. Auth URL: Tenant ID or GUID, in the below URL’s<GUID>/oauth2/authorize?resource=
    6. Access Token URL:<GUID>/oauth2/token?resource=
    7. Client ID: Please refer to step 18 in the azure steps list, there it is “Application (client) id”, enter that value on Client ID field in POSTMAN.
    8. For Client Secret, please refer to step 17 in azure steps list.
    9. Keep scope and client values as blank and choose “Send as Basic Auth header” in Client Authentication and then click on “Clear cookies” and then finally click on “Get New Access Token”
    10. You should get “Authentication complete” message.
    11. This token can then be used as a replacement of the web service key in postman.
    Business Leaders Guide to Dynamics 365Business Leaders Guide to Dynamics 365