2016-06-21 16 views

答えて

1

このような試みですか?

var identity = new ClaimsIdentity(User.Identity); 
identity.RemoveClaim(identity.FindFirst("name")); 
identity.AddClaim(new Claim("name", "Jon")); 

var authenticationManager = HttpContext.GetOwinContext().Authentication; 
authenticationManager.AuthenticationResponseGrant = new AuthenticationResponseGrant(
    new ClaimsPrincipal(identity), 
    new AuthenticationProperties 
    { 
     IsPersistent = true 
    }); 
関連する問題