What is the correct URI?I don't quite understand what to fill in 'redirect URI'.

Anonymous
2022-07-28T01:48:18.657+00:00

Request Id: 0cb93f22-7eaa-4792-86ff-b2d73af35b00
Correlation Id: a0e01308-089f-4063-b991-01d2f2482d82
Timestamp: 2022-07-28T01:43:44Z
Message: AADSTS50011: The redirect URI 'https://developer.microsoft.com/zh-cn/microsoft-365/profile' specified in the request does not match the redirect URIs configured for the application 'a1cffbc6-1cb3-44e4-a1d2-cee9cce700f1'. 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.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,789 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 29,746 Reputation points Microsoft Employee
    2022-07-28T03:11:32.873+00:00

    Hi @Plasmamc-9300,

    Thanks for reaching out.

    Generally, the error AADSTS50011 comes when the Redirect URL value provided in the application does not match with the Redirect URIs value configured in Azure AD.

    The redirect URI, or reply URL is the address where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.

    While registering the application in Azure AD, redirect URL need to specify as below:

    225506-image.png

    and the same URL need to configure in your application while requesting the token from authorization server.

    Hope this will help.

    Thanks,
    Shweta

    -----------------------------------------------

    Please remember to "Accept Answer" if answer helped you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.