/// <summary> /// 初始化一个新的<c>OwinAuthenticationTicket</c>实例 /// </summary> /// <param name="isPresistent">是否持久化验证会话</param> /// <param name="data">要存储的数据</param> /// <param name="authenticationType">验证类型</param> public OwinAuthenticationTicket(bool isPresistent, AuthenticationData data, string authenticationType) { this.Properties = new AuthenticationProperties { IsPersistent = isPresistent }; var claimManager = new ClaimManager(data); var identity = new ClaimsIdentity(claimManager.Claims, authenticationType); this.Identities = new[] { identity }; }