WCF: The request for security token could not be satisfied because authentication failed

后端 未结 4 942
旧时难觅i
旧时难觅i 2020-12-23 21:21

I have written a very simple WCF Service that sends and receives messages. I have tested the app through the VS 2008 default web server host and everything works fine. But w

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 21:46

    You don't actually need to turn off security and in some cases you shouldn't. Within a bindingConfiguration, you can specify message level security that does not establish a security context as follows:

    
        
        
    
    

    Note the establishSecurityContext attribute. Both the client and service should have a security configuration with establishSecurityContext set to the same value. A value of true also works fine but false is recommended in an environment where the servers are load balanced.

提交回复
热议问题