WCF安全配置相關解決方案分析
作者:佚名
當我們在進行WCF安全配置的時候,會遇到一種比較特殊的問題,那么在這里我們就將這一問題記錄下來,以方便大家將來的學習。
大家知道,WCF開發工具可以幫助開發人員打造一款跨平臺的安全性極高的解決方案。那么,他的安全機制是如何得到保障的呢?在這里,我們首先來了解一下在WCF安全配置中,出現的一些問題,先將問題總結如下,希望能夠對大家祈禱一個研究的作用。
今天重新運行上一個任務的WCF服務,部署到本地調用發現報如下WCF安全配置錯誤:
- {"The caller was not authenticated by the service."}
The request for security token could not be satisfied because authentication failed,
問了一哥們才發現原來也碰到過這個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安全配置時出現的問題,記錄下來方便大家探討。
【編輯推薦】
責任編輯:曹凱
來源:
博客園