twauth-web

Welcome to the twauth-web sample. This will show a basic demo of the standard Twitter 3-legged application authorization flow.

To get started, we'll need you to authorize twauth-web to access your Twitter account. More information on what is required is available from Twitter's OAuth overview.

Here's our plan:

  1. We're going to generate an OAuth request token that we will use when sending you to Twitter to grant us access.
  2. Then we will redirect you to Twitter.com using our tokens from step 1, for you to authorize our app.
  3. While at Twitter.com you will authorize twauth-web and you'll then be redirected back to us.
  4. We will consume the OAuth params passed to our callback URL when you are redirected back to us. Using those params we will get your auth token from the Twitter API.
  5. Finally, to confirm that all has been authorized, we'll call the Twitter API to get some information about the user who authorized the app to show we are able to retrieve this data on your behalf.

Ready to give this a shot?

Let's Begin