Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redirect_uri_mismatch Azure AD B2C with angular using MSAL

While using loginRedirect() OR acquireTokenRedirect(), I am getting below given error:

redirect_uri_mismatch:AADB2C90006%3a The redirect URI 'http%3a%2f%2flocalhost%3a4200%2fsubscription' provided in the request is not registered for the client id 'blah-blah-blah'.
Correlation ID%3a 29978079-45a7-4f85-a9bf-4cde9d3adc84
Timestamp%3a 2017-09-29 05%3a32%3a22Z

Note: client id is same which I am using in my tenant config as well as configured in Azure.

Please let me know why I am getting a redirect_uri_mismatch error every time and what is this code post redirect_uri_mismatch "AADB2C90006". If any reference Please share a link.

like image 485
Chaitanya Chauhan Avatar asked Sep 29 '17 06:09

Chaitanya Chauhan


1 Answers

You need to add http://localhost:4200/subscription as a reply URL in your B2C Web App configuration. This documentation should help.

b2c web app configuration

like image 166
spottedmahn Avatar answered Nov 18 '22 20:11

spottedmahn