title: how to use Authorize Attribute in asp.net MVC?
body: <p>I need your help, please I am not aware about how to use the authorize attribute in asp.net MVC.</p>
  
  <p>For example </p>
  
  <pre><code>[Authorize]
  public class HomeController : Controller
  {
      //
      // GET: /workflow/home/
      [AllowAnonymous]
      public ActionResult Index()
      {
  
          return RedirectToAction("signIn", "Accounts");
      }
  
  
      public ActionResult TrackingPage()
      {
          return View();
      }
  
  
      public ActionResult profile()
      {
          ViewBag.profile = true;
          return View();
      }
      public ActionResult content()
      {
          return View();
      }
  
  }
  </code></pre>
  
  <p>All the methods are protected else the index method, my question is how to authorize a user who submitted his user name and password in the sign in form correctly, what is the code that I have to write to make this user authorized.</p>
  
  <p>I am new to asp.net MVC and not accustomed to use the attributes, I used to use the session to validate the users.</p>
  
  <p>I do not know if authorize attribute works with the forms or just works with the users created from the computer management i.e(windows authentication).</p>
  
  <p>Please I am a little confused and need your help.</p>