title: ASP.NET Identity and Claim-based
body: <p>How to use claims? For example, I want to set access to each page (resource) for each user. I understand, I can do it using roles, but as I understand, claim-based is more effectively. But when I try to create a claim, I see the following method:</p>
  
  <pre><code>        userIdentity.AddClaim(new Claim(ClaimTypes.Role, "test role"));
  </code></pre>
  
  <p>first parameter of constructor of Claim class get ClaimTypes enum, which has many "strange" members like Email, Phone etc. I want to set that this claim and then check this claim to have access to certain resource. I'm on wrong way? How to do it? </p>