title: WCF 4.0 REST username password authentication
body: <p>I have been struggling with username/password authentication/authorization in a WCF 4.0 RESTfull service using the ASP.Net membership/role providers.</p>
  
  <p>Having spent two days trying to find something that most people agree on, I gave up. A lot of confusion seems to be because there is little information specifically for WCF 4.0.</p>
  
  <p><strike>Could someone be kind enough to </p>
  
  <ol>
  <li>Give an authoritative view on whether WCF 4.0 + REST is a good idea to begin with?</li>
  <li>Outline the <em>generally accepted</em> steps to do this (or links).</li>
  <li>Provide a reasonably complete sample of code needed to complete this. </strike></li>
  </ol>
  
  <p>Edit:
  Bounty for anyone who can provide a complete sample(or even just a link to a complete sample) with username/password Authentication and Authorization for a RESTfull WCF 4.0 service using the WCF service application template in VS 2010.</p>