we have created a webforms application with Visual Studio 2022. Also, created a login page using Microsoft Azure AD (Entra ID). The redirect URI works fine in the IDE, but when the application is published to a server in IIS, the redirect URI does not seem to work anymore. The error is ‘localhost refused to connect’. The redirect URI is https://localhost:12345/signin-oidc. Any help on this would be great. New to this kind of deployment. Thanks
We have tried changing many different settings in IIS including enabling ASP.Net Impersonation, Anonymous Authentication, and many others. Also, we have tried many different redirect URIs to try and come up with one that works. We did deploy this application to Azure webhosting as well and was able to get the redirect to work, but the application has database connections to our local network that don’t work in Azure.
warfdpn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.