webapi之权限验证 一.概念: 二.demo: 1.登录时生成token: FormsAuthenticationTicket token = , account, DateTime.Now, DateTime.Now.AddHours(), true, account, FormsAuthentication.FormsCookiePath); loginRltViewModel.TokenStr = FormsAuthentication.Encrypt(token); 2.global…