title: WCF UserNameOverTransport best practices to store user name and password
body: <p>In my client application I have to use web service UserNameOverTransport, so I need in client set username and password like:</p>
  
  <p>client.ClientCredentials.UserName.UserName = "account";
  client.ClientCredentials.UserName.Password = "password";</p>
  
  <p>Is it some best practices where store username and password? </p>
  
  <p>From my point of view it isn't good idea to store credentials in config file.</p>
  
  <p>[Update]
  When I asked this question I though that WCF provide some standard ability to store credentials in config file or have ability to setup with help of endpoints behaiviours.</p>
  
  <p>The example which I looked for is solution by the following link:
  <a href="http://blog.shutupandcode.net/?p=22" rel="nofollow">http://blog.shutupandcode.net/?p=22</a></p>