title: MVC ASP.NET - Manually authorize someone and persist the authorization via Forms Authentication
body: <p>I want the benefits of form authentication in ASP.NET.  I want it to persist the authorization for me and such, but there's one thing different about my situation; I want to authenticate against a simple web service (specifically provided by the client).</p>
  
  <p>I have my code in place to look at the web place and see if they <em>should</em> be authorized, but how do I set the cookie[?] or authorization flag in ASP.NET that they know the current user is authorized.</p>
  
  <p>Basically...</p>
  
  <pre><code>if (HttpContext.Current.User.Identity.IsAuthenticated)
  // we're all good
  
  //Other wise...
  bool success = CheckClientsWebService(string username, string password);
  
  if (success)
  // Somehow tell .NET that they're authorized
  </code></pre>
  
  <p>*Note:  This is a fairly simple service that does not deal with groups or roles.  Simply checking if a user is okay to view the site.</p>