Exemplo n.º 1
0
        public async Task <ClaimsIdentity> GenerateUserIdentityAsync(SMSUserManager manager)
        {
            // 请注意,authenticationType 必须与 CookieAuthenticationOptions.AuthenticationType 中定义的相应项匹配
            var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);

            // 在此处添加自定义用户声明
            return(userIdentity);
        }