title: Unable to add and fetch custom claims values
body: <p>I am using mvc 5 with identity 2.0. I want use custom claim values over the application but I get null values. What am I doing wrong? </p>
  
  <p><strong>Updated code</strong></p>
  
  <p><strong>Login Code in account controller</strong></p>
  
  <pre><code>if (!string.IsNullOrEmpty(model.UserName) &amp;&amp; !string.IsNullOrEmpty(model.Password))
              {
                  AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
                  var result = SignInManager.PasswordSignIn(model.UserName, model.Password, model.RememberMe, shouldLockout: false);
  
  
                  //Generate verification token
                  Dictionary&lt;string, string&gt; acceccToken = null;
                  if (SignInStatus.Success == 0)
                  {
                      var userDeatails = FindUser(model.UserName, model.Password).Result;
                      if (userDeatails != null)
                          acceccToken = GetTokenDictionary(model.UserName, model.Password, userDeatails.Id);
                  }
                  if (model.RememberMe)
                  {
                      HttpCookie userid = new HttpCookie("rembemberTrue", "1");
                      userid.Expires.AddDays(1);
                      Response.Cookies.Add(userid);
                  }
                  else
                  {
  
                      HttpCookie userid = new HttpCookie("rembemberTrue", "0");
                      userid.Expires.AddDays(1);
                      Response.Cookies.Add(userid);
  
                  }
                  #region custom claims
  
  
                  var claims = new Claim[]
                             {
                      new Claim("urn:Custom:MasterUniqueId", Convert.ToString(Guid.NewGuid()))
                                  };
                  ClaimsIdentity identity = new ClaimsIdentity(claims, DefaultAuthenticationTypes.ApplicationCookie);
                  IAuthenticationManager authenticationManager = System.Web.HttpContext.Current.GetOwinContext().Authentication;
                  authenticationManager.SignIn(identity);
  </code></pre>
  
  <p><strong>Starup.Auth.cs</strong></p>
  
  <pre><code> public void ConfigureAuth(IAppBuilder app)
          {
              // Configure the db context, user manager and signin manager to use a single instance per request
              app.CreatePerOwinContext(ApplicationDbContext.Create);
              app.CreatePerOwinContext&lt;ApplicationUserManager&gt;(ApplicationUserManager.Create);
              app.CreatePerOwinContext&lt;ApplicationSignInManager&gt;(ApplicationSignInManager.Create);
  
              // Enable the application to use a cookie to store information for the signed in user
              // and to use a cookie to temporarily store information about a user logging in with a third party login provider
              // Configure the sign in cookie
              app.UseCookieAuthentication(new CookieAuthenticationOptions
              {
                  AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                  LoginPath = new PathString("/Account/Login"),
                  Provider = new CookieAuthenticationProvider
                  {
                      // Enables the application to validate the security stamp when the user logs in.
                      // This is a security feature which is used when you change a password or add an external login to your account.  
                      OnValidateIdentity = SecurityStampValidator.OnValidateIdentity&lt;ApplicationUserManager, ApplicationUser&gt;(
                          validateInterval: TimeSpan.FromMinutes(30),
                          regenerateIdentity: (manager, user) =&gt; user.GenerateUserIdentityAsync(manager))
                  },
                  SlidingExpiration = true,
                  ExpireTimeSpan = TimeSpan.FromMinutes(60)
              });
  </code></pre>
  
  <p><strong>another controller</strong></p>
  
  <p>Here I am trying to fetch that claim values but it shows null</p>
  
  <pre><code>var identity = (ClaimsIdentity)User.Identity;
  var res= identity.FindFirst("urn:Custom:MasterUniqueId");
  </code></pre>
  
  <blockquote>
    <p>res is null</p>
  </blockquote>