WCF安全配置相關(guān)解決方案分析
大家知道,WCF開發(fā)工具可以幫助開發(fā)人員打造一款跨平臺的安全性極高的解決方案。那么,他的安全機(jī)制是如何得到保障的呢?在這里,我們首先來了解一下在WCF安全配置中,出現(xiàn)的一些問題,先將問題總結(jié)如下,希望能夠?qū)Υ蠹移矶\一個(gè)研究的作用。
今天重新運(yùn)行上一個(gè)任務(wù)的WCF服務(wù),部署到本地調(diào)用發(fā)現(xiàn)報(bào)如下WCF安全配置錯(cuò)誤:
- {"The caller was not authenticated by the service."}
 
The request for security token could not be satisfied because authentication failed,
問了一哥們才發(fā)現(xiàn)原來也碰到過這個(gè)WCF安全配置的問題,居然再次跌倒在這,所以匆忙記錄一下
- < system.serviceModel>
 - < services>
 - < service name="*.SearchingService" behaviorConfiguration=
 
"*.SearchingServiceBehavior">- < !-- Service Endpoints -->
 - < endpoint address="" binding="wsHttpBinding" bindingConfiguration=
 
"wsHttpBindingConfiguration" contract="*.ISearchingService">- < /endpoint>
 - < /service>
 - < /services>
 - < bindings>
 - < wsHttpBinding>
 - < binding name="wsHttpBindingConfiguration">
 - < security mode="None" />
 - < /binding>
 - < /wsHttpBinding>
 - < /bindings>
 - < behaviors>
 - < serviceBehaviors>
 - < behavior name="*.SearchingServiceBehavior">
 - < !-- To avoid disclosing metadata information, set the value
 
below to false and remove the metadata endpoint above before deployment -->- < serviceMetadata httpGetEnabled="true" />
 - < !-- 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 -->- < serviceDebug includeExceptionDetailInFaults="true" />
 - < /behavior>
 - < /serviceBehaviors>
 - < /behaviors>
 - < /system.serviceModel>
 
以上就是WCF安全配置時(shí)出現(xiàn)的問題,記錄下來方便大家探討。
【編輯推薦】















 
 
 

 
 
 
 