Open minerupset opened 5 months ago
The URI in question conforms to the rules laid out here(https://learn.microsoft.com/en-us/entra/identity-platform/reply-url) so it's a valid URI, especially for a development environment. Not to mention, it is the URI provided by Microsoft in the tutorial.
Thanks for any and all help!
This issue is for a: (mark with an
x
)Minimal steps to reproduce
I followed along with the tutorial provided at this website: https://learn.microsoft.com/en-us/entra/external-id/customers/sample-web-app-node-sign-in
I have confirmed several times that the redirect URI - http://localhost:3000/auth/redirect - which is identical to the tutorial, is exactly correct in my configuration of the Web Redirect URI on Azure, and present in the body of the URL request (redacted / shortened version below).
https://##########.ciamlogin.com/#############/oauth2/v2.0/authorize?client_id=#######&scope=openid%20profile%20offline_access&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fredirect&client-request-id=etc., etc.
I have found several StackOverflows, Microsoft Community Submissions, etc. dating the last 4 years with similar issues. Each solution appears to be unique and not a global resolution to the problem.
Any log messages given by the failure
The error message provided is: invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
Expected/desired behavior
That the error message contain the actual values of the URIs (so that the developer can more easily identify where there is an inconsistency), or for this issue to be investigated in case there is a bigger issue at hand here.
I can see throughout logging during the application that the redirect URI is always the same value, all the way through it landing in the parameters of the URL, and I have confirmed that it is exactly correct in the Azure configuration. I've poked this every which way the last few hours and am stumped.
OS and Version?
macOS Sonoma
Versions
Microsoft Edge, v 120 Azure msal-node v. 2.6.4 (tested on version 1.17.2 and had the same response)
Mention any other details that might be useful