Ms account sign-in for my webapp is working normally on one pc but not on the other

Renato Uguz 1 Reputation point


I'm learning asp net core development and I have created a web application with net6 and mvc / razor pages..

From Azure - I'm only using MS Account to login into my app..

By following tutorials I have added sign in with MS Account to identity in my app:
I have added application to azure, got clientId and clientsecret and testing from development (virtual) machine is working fine..

After publishing my app onto IIS (have VPN IIS server), if I try to login with MS Account from my work pc everything is working normally.. BUT when I'm trying the same thing from home (I have another private MS Account) I'm getting error (excerpt from full error message):

"error":"invalid_client","error_description":"AADSTS50011: The redirect URI 'https://myserver/myapp/signin-microsoft' specified in the request does not match the redirect URIs configured for the application 'xxxx-xxxx-xxxx' (I have replaced real server and app info)..

I have tried to search about specified error, but it does not makes sense that login with ms account does work normally on work pc, but not from the home pc.. I have tried with Edge and Chrome with same results on both computers..

Can someone, please, shed some light what is happening because I don't know where to search for error anymore..


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