简体   繁体   中英

IIS login challenge for ASP.Net application

I have a legacy app that has a form based authentication. I need to set up a dev environment and I want to have a challenge authentication so that the site is only viewed by the dev team.

When I added basic authentication to the iis it works but it sets the Context.Request.IsAuthenticated property as true, the problem is that the same context variables are used by both authentication methods making them unreliable. Is there a way to separate this variables or any other way of showing a challenge login without interfering with the application (no code changes).

您可以使用Windows身份验证,并且仅授予开发团队访问应用程序文件夹的权限。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM