public ActionResult Auth(string code) { AuthInfo authInfo = null; authInfo = OAuthHelper.GetAuthInfo(ConfigurationManager.AppSettings[_clientIdKey], ConfigurationManager.AppSettings["ClientSecret"], code); if (authInfo != null) { HttpContext.Session[_tokenKey] = authInfo.AccessToken; } return(RedirectToAction("Index")); }