Twitter application using C # using OAuth token

I am trying to get a workaround, so I don’t need to click the Allow button every time I use 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 above code example, I just get the OAuth token, but Twitter asks me to confirm that I want to allow access. Is there a workaround that I could not accept?

+3
source share
1 answer

I am afraid that the resolution step is completely out of your hands. It would be dangerous to let the website allow the token request on behalf of the user.

+2
source

Source: https://habr.com/ru/post/1766143/


All Articles