NOTE: “Deprecated. As of July 15, 2024, Microsoft will discontinue support for using service-based authentication methods (certificate and shared secret) to connect the Warehouse Management mobile app to Supply Chain Management.”
https://learn.microsoft.com/en-gb/dynamics365/supply-chain/get-started/removed-deprecated-features-scm-updates#service-based-authentication-methods-for-the-warehouse-management-mobile-app
I got an email from a customer the other day explaining the he got an error message from his WMS mobile app saying:
This device uses an authentication method that will soon be discontinued. Your organization should prepare to move to device code flow authentication before then.
Here is a short step by step guide on what needs to be done to switch
- In the Azure Portal, find the App registration that you are using for authentication and make sure Enable the following mobile and desktop flows is set to Yes
- In Application Registration go to API Permissions and verify these settings:
- Still in the Azure Portal, go to Microsoft Entra ID – Enterprise Applications. Find the same Client ID as above and open it. Make sure that the Assignment Required and Visible to users is set as below
- Click Users and Groups, add all users (or groups of users) that will have permission to register new new WMS Devices
I noticed you also need to delete the existing connection from the WMS app and create a new one. The simplest way is to create a new connection file and import it or generate a new QR code. Use this file as a template:
{
"ConnectionList": [
{
"ActiveDirectoryClientAppId":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"ConnectionName": "Tier2 Warehouse",
"ActiveDirectoryResource": "https://xxxx.sandbox.operations.dynamics.com/",
"ActiveDirectoryTenant": "https://login.windows.net/tenantdomain.com",
"Company": "USMF",
"IsEditable": false,
"IsDefaultConnection": true,
"ConnectionType": "devicecode"
}
]
}
Links:
User-based authentication – Supply Chain Management | Dynamics 365 | Microsoft Learn