简体   繁体   English

没有SSL的WCF身份验证

[英]WCF Authentication WITHOUT SSL

Is there a way to setup authentication (ala "Basic Authentication") without actually setting up an SSL Certificate? 有没有办法设置身份验证(ala“基本身份验证”)而不实际设置SSL证书? I'd also like to do this in REST or regular SOAP WCF Services, preferably in REST, but would like to be able to mix the services. 我还想在REST或常规SOAP WCF服务中执行此操作,最好是在REST中,但希望能够混合使用这些服务。 In other words, "I want to be able to send a regular old username and password just like in Basic Authentication but without the SSL." 换句话说,“我希望能够发送常规的旧用户名和密码,就像在基本身份验证中但没有SSL一样。” Is there a way to do this? 有没有办法做到这一点?

Use TransportCredentialOnly security mode. 使用TransportCredentialOnly安全模式。 This post explains how to do it: 这篇文章解释了如何做到这一点:

http://developers.de/blogs/damir_dobric/archive/2006/07/31/890.aspx . http://developers.de/blogs/damir_dobric/archive/2006/07/31/890.aspx

Don't forget that you also have to enable basic authentication in IIS. 不要忘记您还必须在IIS中启用基本身份验证。

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

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