Client Credential Type in WCF

January 16, 2010 by: Sanket

Different Client Credential Type provided in WCF – Windows communication foundation

 

The choice of client credential type depends on the security mode in place. For transport security you can require a Windows credential or certificate-and there are variations on how Windows credentials are passed via TCP, HTTP and MSMQ. Message security supports any of the following settings for clientCredentialType:

  • None
  • Windows
  • UserName
  • Certificate
  • IssuedToken

You can set anyone of above as clientCredentialType in web.config as shown below:

  <wsHttpBinding>

    <binding name="wsHttp">

      <security mode="Message"> 

        <message clientCredentialType="UserName" />

      </security>

    </binding>

  </wsHttpBinding>

Filed under: .NET,Web Development
Tags: , ,

Leave a Reply

*