Exemplo n.º 1
0
 private async Task SignInAsync(ApplicationUser user, bool isPersistent)
 {
     this.authenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
     this.authenticationManager.SignIn(new AuthenticationProperties { IsPersistent = isPersistent },
                 await user.GenerateUserIdentityAsync(this.userManager, isPersistent));
 }