Exemplo n.º 1
0
        public ActionResult Auth(string code)
        {
            AuthInfo authInfo = null;

            authInfo = AppHarborClient.GetAuthInfo(Config.ClientId, Config.ClientSecret, code);

            if (authInfo != null)
            {
                TokenStore.AccessToken = authInfo.AccessToken;
            }

            return(RedirectToAction("Index"));
        }