title: How to get Custom UserName/Password in WCF
body: <p>I am using clientCredentailType as Username under security mode under Message. I have created a Custom username and password validator class to verify the username and password. </p>
  
  <p>I want to use these credentials (username,password) for authorization to different operations within the service. I want to know whats the best way to store the username and password for reuse. Should I use my custom validator class to store these in static variables so that they are accessible everywhere ? </p>
  
  <p>Why can't I use System.Threading.Thread.CurrentPrincipal.Identity.Name, I tried to get the username but it does not show me anything and how can I get Password ?</p>
  
  <p>Thanks
  Adnan</p>