title: Replace claims identity with Forms Identity
body: <p>I am using AAD authentication for the application but this is temporary till the time my user is getting authenticated and redirected back to my application once it came on my application i am getting</p>
  
  <pre><code>this.User.Identity  as ClaimsIdentity
  </code></pre>
  
  <p>But i dont want claims identity once user came back i want to change/Replace this claims identity with Forms Identity.</p>
  
  <p>I tried to set forms authentication cookie but when user redirected and come back still identity is claims only it is not getting change to forms identity.</p>
  
  <p>tried with authenticating claims identity with expire date but still cookies are flowing and i am getting claims identity.</p>
  
  <pre><code>var virtualUserClaims = context.User.Identity as System.Security.Claims.ClaimsIdentity;
                          virtualUserClaims.RemoveClaim(virtualUserClaims.FindFirst(System.IdentityModel.Claims.ClaimTypes.Name));
                          virtualUserClaims.AddClaim(new Claim(System.IdentityModel.Claims.ClaimTypes.Name, firstFullUsernameToAuthenticatedAgainst));
                          var authenticationManager = System.Web.HttpContext.Current.GetOwinContext().Authentication;
                          authenticationManager.AuthenticationResponseGrant =
                          new AuthenticationResponseGrant(new ClaimsPrincipal(virtualUserClaims), new AuthenticationProperties() { IsPersistent = true , ExpiresUtc = DateTime.UtcNow.AddDays(-1) });
  </code></pre>
  
  <p>After this code i am setting forms authentication cookie </p>
  
  <pre><code>FormsAuthentication.SetAuthCookie(firstFullUsernameToAuthenticatedAgainst, false);
  </code></pre>
  
  <p>Can anyone tell me how i will remove claims identity </p>