After deploying my Azure AD integrated app to IIS I can't login anymore.
The app is configured on xxx.abc.com with the following settings in Azure AD
When I try to login by going to
I've tried all kinds of variations of the urls but to no avail.
The current configuration does work (!) when debugging with Visual Studio at https://localhost:7098/.
CodePudding user response:
The error " AADSTS50011
" usually occurs if the redirect Uri application is redirected doesn't match the redirect Uri registered in the application.
Make sure to deploy the Azure web app in Azure Active Directory and make sure to add the Uri:
Go to Azure Portal -> Azure Active Directory -> App Registrations -> New Registration
Check whether the redirect Uri matches like below:
Go to Azure Portal -> Azure Active Directory -> App Registrations -> Your App -> Authentication
Or copy the redirect Uri from the error message and add the copied redirect Uri in your Azure portal application and save.
Otherwise please try following this Microsoft QnA by AmanpreetSingh-MSFT.
- Try updating the Uri as
AppURL/signin-oidc
as mentioned in this SO Thread by Wayne Yang.
If still the issue persists, refer the below links which might give you a pointer to solve the error:
Identity Error AADSTS50011 Azure AD by Ben Murphy Dev Blog
CodePudding user response:
I eventually solved the problem by adding a trailing dash to the callback path in appsettings.json
"CallbackPath": "/signin-oidc/"