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 https://xxx.abc.com I get the following message:
AADSTS50011: The redirect URI 'https://xxx.abc.com/signin-oidc' specified in the request does not match the redirect URIs configured for the application 'XXXXX-118d-4041-8117-XXXXX'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this. More details: Reply address did not match because requested address had a trailing slash.
Reading this error it makes me think the error is due to the trailing dash in the Azure AD configuration as shown in the image "https://xxx.abc.com/signin-oidc/". The thing is, if I try to remove the trailing dash it says "The path of the url does not end with '/'" and it doesn't allow me to save the change.
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/.
I eventually solved the problem by adding a trailing dash to the callback path in appsettings.json