title: Asp.Net MVC authorize a custom user which extends ApplicationUser
body: <p>I'm using the built-in authentication/authorization system where the <code>ApplicationUser</code> needs to log in and once authenticated, he is signed in with the <code>SignInManager</code>.</p>
  
  <p>I also have a different user, <code>CustomUser</code> which extends <code>ApplicationUser</code>. The <code>CustomUser</code> is authenticated via external service. Once he is authenticated, I check if he exists, if not I create him and give him the <code>CustomRole</code>.</p>
  
  <p>How can I keep that <code>CustomUser</code> authorized? I would like to be able to place the <code>[Authorize(Roles="CustomRole")]</code>
  attribute above the actions where he should be allowed. Is that possible? What would I need to do to make that work? Or is there a better way?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's the implementation of CustomUser. It is located under Application.Models</p>
  
  <pre><code>public class CustomUser : ApplicationUser
  {
      public int Gender
      {
          get;
          set;
      }
  
      public string FCode
      {
          get;
          set;
      }
  
      public bool Subscribed
      {
          get;
          set;
      }
  }
  </code></pre>
  
  <p>This is a simplified version of <code>CustomUser</code>. </p>