Ejemplo n.º 1
0
        public new BaseRequestTokenResult GetRequestToken()
        {
            string response = base.GetRequestToken();

            _requestTokenResult = new BaseRequestTokenResult(response);
            return(_requestTokenResult);
        }
        public new BaseRequestTokenResult GetRequestToken()
        {
            string response = base.GetRequestToken();

            _requestTokenResult = new BaseRequestTokenResult(response);
            return _requestTokenResult;
        }
Ejemplo n.º 3
0
        public ActionResult GetRequestToken()
        {
            twOAuth = new TwitterAuthenticator(
                // real consumer key
                "VPV4S0Yly38DQGCnjzAJQ",
                // fake consumer key
                //"cChZNFj6T5R0TigYB9yd1w",

                // real consumer secret
                "fg99T7lvSoAXLBcW0eqgPVcAHQHlWEKEso2WBP7E4lA",
                // fake consumer secret
                //"L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg",

                // real callback
                "http://mysite.ru:1083/Login/TwitterCallback/"
                // face callback
                //"http://localhost/sign-in-with-twitter/"
                );

            requestTokenResult = twOAuth.GetRequestToken();

            return(new RedirectResult(twOAuth.UserAuthorizationUrl));
        }