如何设置身份验证弹出窗口,而无需手动设置IE - >工具 [英] How to set authentication pop up without manual setting in IE-->tools

查看:396
本文介绍了如何设置身份验证弹出窗口,而无需手动设置IE - >工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个经典的asp内网应用程序。我需要Windows内部网站的弹出认证。如果我更改IE中的设置 - >工具 - >互联网选项 - >安全 - >自定义级别 - >用户身份验证 - > 提示用户名和密码,我正在弹出Windows身份验证。但我的要求是手动更改设置,我必须在给出应用程序URL时弹出身份验证。请帮助我。

我非常感谢您的快速回复。

提前感谢...

Hi ,
I have a classic asp intranet application. I need windows pop up authentication for that intranet site.If I change the setting in IE-->tools-->internet options-->security-->custom level-->user authentication-->"Prompt for username and password", I am getting windows authentication pop up.But my requirement is with out changing the setting manually,I have to get authentication pop up when an application url is given.Please help me.
A quick response is highly appreciated.
Thanks in advance...

推荐答案

1.因为您使用的是Intranet应用程序第一个选项应该使用Windows身份验证。

要在ASP.NET应用程序中启用Windows身份验证,您应该确保在IIS中为您正在构建的应用程序启用了集成Windows身份验证。 />
然后你应该添加/修改web.config文件中的下一个设置:

1.Because you are using intranet application you first option should use Windows Authentication.
To enable Windows Authentication within an ASP.NET Application, you should make sure that you have "Integrated Windows Authentication" enabled within IIS for the application you are building.
Then you should add/modify the next settings in your web.config file:
<configuration>

    <system.web>

        <authentication mode="Windows" />

         <authorization>
             <deny users="?"/>
          </authorization>

    </system.web>

</configuration>





2.第二种解决方案可能是实现表单身份验证,就像互联网应用程序一样。

在这种情况下你可以从下一个开始: http://msdn.microsoft。 com / en-us / library / vstudio / 7t6b43z4(v = vs.100).aspx [ ^ ]


这篇关于如何设置身份验证弹出窗口,而无需手动设置IE - &gt;工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆