62,263
社区成员
发帖
与我相关
我的任务
分享
ClaimsIdentity _identity = new ClaimsIdentity(DefaultAuthenticationTypes.ApplicationCookie);
_identity.AddClaim(new Claim(ClaimTypes.Name, "admin"));
var AuthenticationManager = HttpContext.GetOwinContext().Authentication
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent =true }, _identity);

项目中没有userinfo怎么去控制权限,sp大神是否看谁都是小学没毕业连hello world都不会写的农民工,看谁都不顺眼请不要上csdn,人人都会也不会有人上csdn来提问,我怎么就感觉你在哪个帖子都是喷的,别人是来求问题解决方法的,也许这就是高手解决问题的不同之处吗,我们这些菜鸟真心不懂