WCF安全配置相关解决方案分析

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

我们提供的服务有:成都网站建设、成都网站制作、微信公众号开发、网站优化、网站认证、名山ssl等。为上千多家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的名山网站制作公司

今天重新运行上一个任务的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安全配置时出现的问题,记录下来方便大家探讨。

本文名称:WCF安全配置相关解决方案分析
网站网址:http://www.mswzjz.com/qtweb/news20/208470.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联