Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Please note that Q&A forum is a public platform, and moderators will modify the question to hide personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
In most cases, this issue is caused by a mismatch between the redirect URI used by the application and the values configured in Microsoft Entra ID App Registration. You may resolve this by reviewing and updating the App Registration using the steps below:
- Sign in to the Azure portal using an administrator account for the tenant associated with your demo environment.
- Navigate to Microsoft Entra ID > App registrations.
- Select View all applications in the directory, then choose the application whose Application (Client) ID appears in the error message.
- From the left‑hand menu, select Authentication.
- Under the Redirect URIs section, select Add URI if no redirect URI exists, or edit the existing redirect URI if it is incorrect.
- Paste the environment URL exactly as shown in the error message, for example: https://<your-environment>.....com/
- Save the changes.
After saving, please allow three to five minutes for the changes to propagate, then attempt to sign in again. If the Microsoft Entra sign‑in page does not appear, try clearing your browser cache or using an InPrivate / Incognito browser session.
If the redirect URI being sent by the application is not the expected one, you may need to update the application’s code or configuration accordingly.
For reference, you may review the official Microsoft documentation here: https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/error-code-aadsts50011-redirect-uri-mismatch
I hope this information is helpful. If this guidance does not apply to your specific scenario, please feel free to share additional details so I can review further.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.