How to pass domain user credentials to wcf service RRS feed

  • General discussion

  • when i will develop wcf client then how to write the code to pass windows credential to wcf service.

    i got a code which show how to pass user name & password

    private static void Main(string[] args)
         var client = new WcfServiceClient();
         client.ClientCredentials.UserName.UserName = username;
         client.ClientCredentials.UserName.Password = password;
    but i do not understand how to pass logged in user's credentials to service from consumed client. what will be the cod. thanks

    Tuesday, April 1, 2014 8:33 AM

All replies

  • good link

    Tuesday, April 1, 2014 8:40 AM
  • Good !!
    you can mark it as answer.
    Wednesday, April 2, 2014 7:47 AM