WCF安全配置相关解决方案分析
创始人
2024-06-23 11:50:25
0

大家知道,WCF开发工具可以帮助开发人员打造一款跨平台的安全性极高的解决方案。那么,他的安全机制是如何得到保障的呢?在这里,我们首先来了解一下在WCF安全配置中,出现的一些问题,先将问题总结如下,希望能够对大家祈祷一个研究的作用。

今天重新运行上一个任务的WCF服务,部署到本地调用发现报如下WCF安全配置错误:

  1. {"The caller was not authenticated by the service."} 

The request for security token could not be satisfied because authentication failed,

问了一哥们才发现原来也碰到过这个WCF安全配置的问题,居然再次跌倒在这,所以匆忙记录一下

  1. < system.serviceModel> 
  2. < services> 
  3. < service name="*.SearchingService" behaviorConfiguration=
    "*.SearchingServiceBehavior"> 
  4. < !-- Service Endpoints --> 
  5. < endpoint address="" binding="wsHttpBinding" bindingConfiguration=
    "wsHttpBindingConfiguration" contract="*.ISearchingService"> 
  6. < /endpoint> 
  7. < /service> 
  8. < /services>   
  9. < bindings> 
  10. < wsHttpBinding> 
  11. < binding name="wsHttpBindingConfiguration"> 
  12. < security mode="None" /> 
  13. < /binding> 
  14. < /wsHttpBinding> 
  15. < /bindings> 
  16. < behaviors> 
  17. < serviceBehaviors> 
  18. < behavior name="*.SearchingServiceBehavior"> 
  19. < !-- To avoid disclosing metadata information, set the value 
    below to false and remove the metadata endpoint above before deployment --> 
  20. < serviceMetadata httpGetEnabled="true" /> 
  21. < !-- To receive exception details in faults for debugging purposes, 
    set the value below to true. Set to false before deployment to avoid 
    disclosing exception information --> 
  22. < serviceDebug includeExceptionDetailInFaults="true" /> 
  23. < /behavior> 
  24. < /serviceBehaviors> 
  25. < /behaviors> 
  26. < /system.serviceModel> 

以上就是WCF安全配置时出现的问题,记录下来方便大家探讨。

【编辑推荐】

  1. WCF Adapter轻松管理消息通信
  2. 多种WCF绑定类型应用情况分析
  3. WCF异常现象两种特殊情况具体分析
  4. WSIT连接WCF正确操作方法
  5. WCF双向通信相关概念正确理解

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
着眼MAC地址,解救无法享受D... 在安装了DHCP服务器的局域网环境中,每一台工作站在上网之前,都要先从DHCP服务器那里享受到地址动...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...