--- title: "Register a client secret for your app" slug: "bc-register-a-client-secret-for-your-app" tags: ["ANY", "Anywhere Mobility Solutions", "BC", "Business Central"] updated: 2026-06-25T09:59:05Z published: 2026-06-25T09:59:05Z canonical: "docs.staedean.com/bc-register-a-client-secret-for-your-app" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Register a client secret for your app To establish communication between your Microsoft Dynamics 365 Business Central environment and the Anywhere Portal app, define a client secret for the app registered in Microsoft Entra admin center. ## Steps 1. In the Microsoft Entra admin center, open your app and select the **Certificates & Secrets** section. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(456).png) 2. Select the **New client secret** action and choose a description and an expiration period. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(457).png) 3. Save the secret value and store it in a secure location. Use it together with the client ID to get an AD token for API calls. ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/image(458).png) > [!NOTE] > **Note** Registering the Anywhere Portal as an app in Microsoft Entra admin center is based on [Microsoft documentation](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app). > [!NOTE] > **Note** Granting the Azure app rights is based on [Microsoft documentation](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication#task-2-set-up-the-azure-ad-application-in-). ## Related - [Azure registration](/bc-azure-registration.md) - [Register the required permissions for your app](/bc-register-the-required-permissions-for-your-app.md) - [Register the redirect URIs for your app](/bc-register-the-redirect-uris-for-your-app.md)