简体   繁体   English

通过basicHttpbinding为WCF启用Windows身份验证与SSL

[英]Enable SSL with windows authentication for WCF over basicHttpbinding

I have read this post How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS? 我已经阅读了这篇文章如何在IIS中仅将WCF与basichttpbinding,SSL和Basic Authentication一起使用? It seems working fine if I set the clientCredentialType to "Basic",however when I set the clientCredentialType to "Windows" ,the Anonymous user can access my services. 如果将clientCredentialType设置为“ Basic”似乎工作正常,但是当我将clientCredentialType设置为“ Windows”时,匿名用户可以访问我的服务。

Can someone shine some light on this?How can I disable Anonymous users.I have already disable it in ISS 7.5. 有人可以对此进行一些说明吗?如何禁用匿名用户。我已经在ISS 7.5中将其禁用。 What are the differeces betwee basic Authentication and Windows Authentication ? 基本身份验证和Windows身份验证之间有什么区别?

Update when I set the clientCredentialType to "Windows" and I browse to my service url https://ServerName/myservice.svc,I am prompt with a login window ,however I can just type OK without type in User Name and Password , I can still see the service information page.However if I create a.html page on the virtual directory,then I have to enter user name and password.Otherwise I can not see the page. 更新当我设置clientCredentialType为“Windows”,我浏览到我的服务URL 的https://ServerName/myservice.svc,I我提示一个登录窗口,但是我可以在用户名和密码键入OK没有类型,我仍然可以看到服务信息页面。但是,如果我在虚拟目录上创建了一个.html页面,则必须输入用户名和密码。否则,将无法看到该页面。

Basic authentication takes an arbitrary username and password. 基本身份验证采用任意的用户名和密码。 Windows authentication sends the credentials of the currently logged in user (assuming the user is running windows) and is only really useful when both client and server are on the same domain. Windows身份验证发送当前登录用户的凭据(假设该用户正在运行Windows),仅在客户端和服务器都在同一域上时才真正有用。

It's also worth nothing that as sending windows login information across the internet is a potential security issue, firefox and more recent versions of IE won't send the credentials unless explicitly told to (a config setting for FF, moving the site to the "Trusted" zone for IE) 此外,由于通过互联网发送Windows登录信息是一个潜在的安全问题,因此,firefox和IE的最新版本也不会发送凭据,除非明确告知(FF的配置设置,将网站移至“受信任的” “ IE区域”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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