How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?

前端 未结 1 1672
暗喜
暗喜 2020-12-02 10:25

Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding)

The site

1条回答
  •  醉梦人生
    2020-12-02 11:00

    After some digging and asking some questions to a few colleagues, we finally solved the problem.

    Important to understand is there are 2 aspects of security in this case. The IIS security and the WCF security.

    IIS security: Enable SSL & enable Basic Authentication. Disable Anonymous Authentication. (Of course, create a windows account/group and set the permissions on your application in IIS.)

    WCF security: Because the binding is only a BasicHttpBinding, the service doesn't require to valid anything. IIS is responsible for this.

    The binding configuration of the service:

    
      
         
            
               
            
         
      
    

    And finally, to resolve the first error, we deleted the mex Endpoint. This endpoint requires a HTTP binding.

    Deleted:

    
    

    0 讨论(0)
提交回复
热议问题