Ejemplo n.º 1
0
 private async Task SignInAsync(MyUser user, bool isPersistent)
 {
     AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
     AuthenticationManager.SignIn(
         new AuthenticationProperties
     {
         IsPersistent = isPersistent
     },
         await user.GenerateUserIdentityAsync(UserManager));
 }
Ejemplo n.º 2
0
 private async Task SignInAsync(MyUser user, bool isPersistent)
 {
     AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
     AuthenticationManager.SignIn(
         new AuthenticationProperties
         {
             IsPersistent = isPersistent
         },
         await user.GenerateUserIdentityAsync(UserManager));
 }