Question


How to fix error 'AADSTS50011' when accessing MS trying to generate the refresh token?

Full error message:

AADSTS50011: The redirect URI 'https://srvc-xxx.ext.cloudblue.io/guest/callback' specified in the request does not match the redirect URIs configured for the application 'xxxx'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

Instructions


The error message you are encountering (AADSTS50011) is due to a mismatch between the Redirect URI specified in your application and the one you have configured in the Azure portal.


In order to fix it, please follow the next steps:

  1. Copy the application ID from the error message. This is the ID of your application that has been registered in Azure AD.
  2. Go to the Azure portal. Make sure you sign in to the portal by using an account that has permissions to update Azure AD Application registration.
  3. Navigate to Azure Active Directory, select App registrations, locate the application registration by using the application ID, and then open the app registration page.
  4. On the app registration page, select Authentication. In the Platform configurations section, select Add URI to add the redirect URI displayed in the error message to Azure AD.
  5. Save the changes and wait three to five minutes for the changes to take effect, and then send the login request again. You should now be able to sign in to the application.