title: Identity 2.0 Claims not being added to the database
body: <p>I'm using MVC5 with the latest version of Identity (2.1) I'm trying to create a user claim for the facebook access_token. I've never created a claim before, but my other Identity functionality works fine as far as I can tell. </p>
  
  <p>I have this line of code in my Startup.Auth.cs:</p>
  
  <pre><code>    context.Identity.AddClaim(new Claim("urn:facebook:access_token",
   context.AccessToken, xmlSchemaString, "Facebook"));
  </code></pre>
  
  <p>The full piece of code is here if you need more reference: <a href="https://stackoverflow.com/questions/31280580/integrate-facebooksdk-with-identity-2-0/31281837#31281837">Integrate facebooksdk with Identity 2.0</a></p>
  
  <p>If I put a break in the code on the line immediately after that line, I can see that everything is being retrieved properly, most importantly the <code>content.AccessToken</code> (which is a huge string). However, it never makes it to the database after completing a successful login.</p>
  
  <p>As a test, I tried simplifying it, by changing the line to this:</p>
  
  <pre><code>context.Identity.AddClaim(new System.Security.Claims.Claim(ClaimTypes.Email, "test@example.com"));
  </code></pre>
  
  <p>Same outcome, no errors, but nothing is added to the database. I then tried adding this line of code in my IdentityModels.cs right where it tells you to put custom claims:</p>
  
  <pre><code>// Add custom user claims here
          userIdentity.AddClaim(new Claim(ClaimTypes.DateOfBirth, "01/01/1972"));
  </code></pre>
  
  <p>Same outcome...no errors and never makes it to the database. Can anyone think of any reason what my issue might be?</p>
  
  <p>The only thing custom in my Identity setup is that I followed an article on how to use username instead of email (as the username). Also, I changed the Identity table names (e.g. UserClaims) in the <code>OnModelCreating</code> block which seems to be a fairly standard procedure.</p>
  
  <p>I have a feeling it's going to be some rookie move, but at the moment, I'm stumped. Any help is much appreciated.</p>