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.
First, please review the Q&A Assist response, as it closely aligns with my understanding of this issue. Additionally, you may find the following Microsoft article helpful for reference: Error AADSTS50011 with OpenID authentication: The redirect URI specified in the request does not match
In most cases, this issue requires updating the App Registration in Microsoft Entra ID and ensuring that your local/environment URL is correctly whitelisted.
Please follow these steps:
- 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 App ID appears in the error message.
- From the left-hand menu, select Authentication.
- Under the Redirect URIs section: Click Add URI if no redirect URI exists or choose Edit the existing redirect URI if it is incorrect.
- Paste the environment URL exactly as shown in the error message:
https://......dynamics.com/ - Save the changes.
Please wait three to five minutes for the changes to take effect, then attempt the login again. You should now be able to sign in successfully. If the Microsoft Entra login page does not appear, try clearing your browser’s cached credentials or use an InPrivate/Incognito browser session.
If the redirect URI being sent by the application is not the intended one, you will need to update the application’s code or configuration accordingly.
I hope this information is helpful. If you encounter any difficulties, please don’t hesitate to reach out. If this guidance does not apply to your specific scenario, kindly share more details so we can further investigate.
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.