title: Forms Authentication for WCF
body: <p>How to secure my simple <code>WCF</code> service using <code>FormsAuthentication</code> concept ?</p>
  
  <p>The <code>ServiceContract</code> looks similar to this:</p>
  
  <pre><code>    [ServiceContract]
      public interface MovieDb
      {
          [OperationContract]
          string GetData(int value);
  
          [OperationContract]
          string Login(int value);
  
          [OperationContract]
          string Logout(int value);
  
      }
  </code></pre>
  
  <p>I have used <code>FormsAuthentication</code> in my MVC 4 Application for authentication and authorization.</p>
  
  <p>All I could think of is like adding <code>Authorize</code> Filter attribute at the top of the <code>ServiceContract</code> class.</p>
  
  <p>Any pointers in Simple terms in much appreciated. Thanks.</p>