Hi @Anjali Agarwal ,
After you have changed the application, did you change also the App registration to the same redirect URI?
It has to be exactly same URI (host and port) otherwise it won't work.
Hope this helps!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to connect to azure active directory from asp.net application. Below are my values I am putting in the application:
<add key="ClientId" value="XXXXXXXXXX" />
<add key="Tenant" value="XXXXXXXXXXXXXXXXXXXX" />
<add key="Authority" value="https://login.microsoftonline.com/{0}/v2.0" />
<add key="redirectUri" value="https://localhost:5000/" />
For my redirect URI, I have https://localhost:5000/. This is what I configured in my App registrations in the Azure portal. when I run my application, I get this error:
when I change the redirectUri to https://localhost:44368/ then I can see the Microsoft login and Microsoft accepts the userId too, but I get an error after inputting my password saying :
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application:
any help will be highly appreciated. I am following this article by Microsoft to write the code:
Hi @Anjali Agarwal ,
After you have changed the application, did you change also the App registration to the same redirect URI?
It has to be exactly same URI (host and port) otherwise it won't work.
Hope this helps!
@Anjali Agarwal If you are debugging locally from your machine on port 44368, please change the redirect uri to https://localhost:44368/signin-oidc
on the Azure AD App registration page.