Search code examples
wcfwcf-bindingwcf-security

WCF Session without Credentials


Is it possible to configure a WCF service to use sessions, and also not to require the client to send any credentials?

If so, how should the bindings section of the service's App.config file look?


Solution

  • See http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.reliablesessionbindingelement.aspx to establish a session using the WS-ReliableMessaging spec. I don't see why this should require authentication.

    <customBinding>
      <binding name="BasicWithWSReliable">
         <reliableSession />
         <httpTransport authenticationScheme="Anonymous"/>
      </binding>
    </customBinding>