开发者

Twitter App using C# using OAuth token

I'm trying to get a workaround so that i don't have to press the Allow button everytime when I make use of the Twitter API.

if (Request["oauth_token"] == null)
        {
            //Redirect the user to Twitter for authorization.
            //Using oauth_callback for local testing.
            oAuth.CallBackUrl = "http://localhost";
            Response.Redirect(oAuth.AuthorizationLinkGet());
        }
开发者_JS百科

In the code example above i just get a OAuth token but Twitter asks me to confirm that i want to allow access. Is there a workaround so that i don't have to Accept?


I'm afraid the allow step is quite out of your hands. It would be potentially malicious to let a web site authorize a token request on behalf of a user.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜