The example didn't mention how to set the redirect_uri in the code. So you will get AADSTS50011: The redirect URI 'http://localhost:xxxxx' specified in the request does not match the redirect URIs configured for the application.
The xxxxx will be a random port number.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 35c61135-735e-c290-ea66-9edbab7f950a
Version Independent ID: 35c61135-735e-c290-ea66-9edbab7f950a
The example didn't mention how to set the redirect_uri in the code. So you will get AADSTS50011: The redirect URI 'http://localhost:xxxxx' specified in the request does not match the redirect URIs configured for the application.
The xxxxx will be a random port number.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.