3

I am using Twitterizer which works great. I have a website (.NET 4, C#) where a user visits and signs-in... I store tokens e.t.c everything works great.

The question is how can I avoid asking the user to grant access to my app via twitter since I already did this once the first time (and let's say user is already signed in twitter in a different tab on my browser)?

RRG
  • 457
  • 5
  • 18

1 Answers1

5

Use http://api.twitter.com/oauth/authenticate?oauth_token=zyx instead of /oauth/authorize?oauth_token=xyz.

Read more on the Sign in with Twitter and GET oauth/authenticate documentation.

abraham
  • 46,583
  • 10
  • 100
  • 152
  • Thanks it works!...but when using OAuthUtility.BuildAuthorizationUri it always generates "authorize" URL and can't find any other method to generate "authorize" for twitterizer except from replacing that string. – RRG Mar 28 '12 at 15:07
  • You will probably have to look at the library docs, source, or ask the maintainer about it. – abraham Mar 28 '12 at 15:09
  • 4
    The BuildAuthorizationUri method can take 1 or 2 parameters. The 2nd parameter is "bool authenticate". Provide 'true' to this 2nd parameter and the method will provide you with the authenticate url. (FYI: I am the maintainer.) – Ricky Smith Mar 28 '12 at 19:14