Ejemplo n.º 1
0
        public static bool ExternalSignin()
        {
            IAuthenticationManager   authenticationManager = HttpContext.Current.GetOwinContext().Authentication;
            ApplicationSignInManager signinManager         = GetSigninManager();

            var externalLogin = authenticationManager.GetExternalLoginInfo();
            var status        = signinManager.ExternalSignIn(externalLogin, true);

            return(status == SignInStatus.Success);
        }
Ejemplo n.º 2
0
 public SignInStatus ExternalSignIn(ExternalLoginInfo loginInfo, bool isPersistent)
 {
     return(signInManager.ExternalSignIn(loginInfo, isPersistent: false));
 }