An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hi @Ken Zhang
Thank you for reaching out to Microsoft Q&A.
AADSTS50011 is telling you that the redirect URI your app is sending in the OAuth request doesn’t exactly match any of the redirect URIs you’ve configured in Azure AD. Redirect URIs are case-sensitive and even a missing or extra slash will make them “not match.” Here’s how you can fix it:
- Go to the Azure portal > Microsoft Entra ID > App registrations > select your app (D7xxxxxxxxxxxx27).
- In the left menu choose Authentication (Preview) (or “Authentication” in the old portal).
- Under Redirect URI configuration, click + Add a platform or + Add Redirect URI.
- Paste the exact URI your error mentions -https://busixxxxxxxxxx making absolutely sure the casing and any trailing slash match 100% what your app is using.
- Click Save.
- If you’re asking an admin to consent tenant-wide, go to App registrations > API permissions > Grant admin consent (or Enterprise applications > [Your app] > Permissions > Grant admin consent for ).
Once the URI in Azure AD matches exactly what your app sends, the redirect error will go away, and you’ll land back in Business Central as expected.