在单个位置禁用Windows认证 [英] Disable windows authentication on single location

查看:127
本文介绍了在单个位置禁用Windows认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个web应用程序,我想提供给它一对夫妇的Web服务的匿名访问,使我们可以访问计算机网络服务,无需我们的网络在Windows登陆。

I have a web application and I want to provide anonymous access to a couple of the web services in it so that we can access the web services from computers without a windows login on our network.

我在这里<一个尝试的东西href=\"http://stackoverflow.com/questions/2713192/disable-authentication-on-subfolders-of-an-asp-net-app-using-windows-authentica\">Disable在一个ASP.NET应用程序使用Windows身份验证的子文件夹(S)的认证。我已经做到了这一点:

I've tried the stuff here Disable authentication on subfolder(s) of an ASP.NET app using windows authentication. I've done this:

<authentication mode="Windows" />
<authorization>
  <deny users="?" />
</authorization>

...

  <location path="Tests/QService.asmx">
    <system.web>
      <authorization>
        <allow users="?" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location>

这两者的工作,因为它们允许访问匿名用户的Web服务。然而,似乎仍然IIS发送授权challange,因为当我从浏览器访问该服务,我得到一个框输入我的用户名和密码。如果我打我取消可以访问该页面匿名。然而,我们的一些客户不处理这口井,只是失败,因为401回报code的。

These both "work" in that they allow access to the web service for anonymous users. However, it seems that IIS still sends an authorization challange because when I access the service from a browser I get a box to enter my username and password. If I hit cancel I get access to the page anonymously. However, some of our clients don't handle this well and just fail because of the 401 return code.

有没有办法在单一位置完全禁用Windows身份验证,使IIS不会尝试建立一个windows身份验证?

Is there a way to completely disable the windows authentication on that single location such that IIS will not try and establish a windows authentication?

推荐答案

您需要在该单个位置的虚拟目录禁用Windows身份验证。那么你不应该受到质疑。

You need to disable Windows Authentication on the Virtual Directory for that single location. Then you shouldn't be challenged.

这篇关于在单个位置禁用Windows认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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