title: How to authenticate and keep track of users with WCF/JSON?
body: <p>I'm implementing a service in WCF and need to have custom user authentication, by means of a username/password. This service is configured as a WebScript(JSON) service.</p>
  
  <p>I would like to know if it's possible to obtain a security context so I don't have to include a hash or user/pass in every call. I know I can use a certificate for this, but I need to have the uses/pass mechanism of authenticating.</p>
  
  <p>I'm going to be talking to this service using AJAX(jQuery), and it should be possible to use basic HTTP authentication.</p>
  
  <p>This service will later on also expose other endpoints, for example over TCP, and this does support "proper" authentication.</p>
  
  <p>There are so many ways to go for security in WCF, I feel kind of lost, and it feels like the more I read about it the less I know. </p>