How to implement security to WCF service to restrict the service to consume(not allow to consume service) at client side for other users

时间:2016-04-15 11:13:14

标签: c# wcf

i am created WCF service and consumed that service at client application(web application) it is working fine. but I am trying to implement security to WCF service to not consuming/restrict the service at client side for other users,i am using basicHttpBinding.

please find the client web.config code below,

<bindings>

  <basicHttpBinding>

    <binding name="BasicHttpBinding_WCFService" />

  </basicHttpBinding>
</bindings>

<client>
  <endpoint address="http://localhost/ WCFService.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IWCFService" contract="WCFServices.IWCFService" behaviorConfiguration="endpointCredentialsBehavior"
    name="BasicHttpBinding_IWCFService" >
   </endpoint>
</client>

Any help would be appreciated.

0 个答案:

没有答案