OAuth for WebForms

Feb 25, 2013 at 10:26 PM
i saw this link:

but i want to know if there is a way to authenticate to my twitter account without the step 4 "The user authorizes your application.".

I already authorized my account to use my application,, but every time that i want to connect to my TWITTER do I need to authorize again?
Feb 25, 2013 at 10:43 PM

After Step #7, all 4 credentials (ConsumerKey, ConsumerSecret, OAuthToken, and AccessToken) contain tokens. Take those and save them. Then, every time you need to perform a query, load those keys. LINQ to Twitter will recognize that you have all 4 keys and will skip the user authentication and let you query right away.

If you supported multiple users, then you only need to have them authenticate one time, save their tokens, and then reload their tokens on every subsequent query (instance of TwitterContext).

If you are the only person using the app or if it runs via server, you might want to look at SingleUserAuthorizer. You can visit your Twitter App to get all 4 keys.

Feb 28, 2013 at 9:45 PM
Thanks a lot! That was exactly what I've been looking for.

If someone needs to know about SingleUserAuthorizer follow the link: