开发者

Twitter App using C# using OAuth token

开发者 https://www.devze.com 2023-01-17 18:44 出处:网络
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.

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

精彩评论

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