Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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());
        }

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?

like image 680
Younes Avatar asked Aug 27 '26 23:08

Younes


1 Answers

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.

like image 142
James Santiago Avatar answered Aug 29 '26 12:08

James Santiago



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!