Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • Bio
    • Resume
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Media
    • Newsletter
    • Photo Galleries
    • Instagram Feed
    • Video Archives
    • Podcasts
    • Music Playlists
  • Books
  • Connect
    • Rohrscheib Capital
    • Disclaimer
    • Privacy Policy
You are here: Home / Marketing & Tech / Twitter API Wiki / Sign in with Twitter

Twitter API Wiki / Sign in with Twitter

April 21, 2009 by Cotton Rohrscheib 4 Comments

Facebook Connect has definitely been a blessing for handling user authentication on various forms of web2.0 applications and websites.  I have used Facebook Connect on several of my personal projects as well as things we develop for our clients.

With the popularity of Twitter, I figured it would only be a short period of time before users of this popular microblogging social netework would be able to carry their Twitter logins with them to the websites they visit.  Here’s a little bit of information how the Twitter API works to accomplish this:

Sign in with Twitter is the pattern of authentication that allows users to connect their Twitter account with third-party services in as little is one click. It utilizes OAuth and although the flow is very similar, the authorization URL and workflow differs slightly as described below.

The normal flow dictates that applications send request tokens to oauth/authorize in Twitter’s implementation of the OAuth Specification. To take advantage of Sign in with Twitter, applications should send request tokens in the oauth_token paramater to oauth/authenticate instead.

The oauth/authenticate method will perform the following:

  1. If the user is logged into Twitter.com and has already approved the calling application, the user will be immediately authenticated and returned to the callback URL.
  2. If the user is not logged into Twitter.com and has already approved the calling application, the user will be prompted to login to Twitter.com then will be immediately authenticated and returned to the callback URL.
  3. If the user is logged into Twitter.com and has not already approved the calling application, the OAuth authorization prompt will be presented. Authorizing users will then be redirected to the callback URL.
  4. If the user is not logged into Twitter.com and has not already approved the calling application, the user will be prompted to login to Twitter.com then will be presented the authorization prompt before redirecting back to the callback URL.

This behavior is explained in the following flowchart:

Peter Denton has created a number of buttons to make this experience easy and beautiful.

This is something that I am likely going to devote some time to in the next few months so stay tuned for more information on this plugin…

Twitter API Wiki / Sign in with Twitter

Share this post on:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest

Related

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Comments

  1. Tek Rumeli says

    April 21, 2009 at 6:07 pm

    Thank you for this.

    Reply
  2. brianellin says

    May 11, 2009 at 5:39 pm

    Cotton, You can use both Facebook Connect and Twitter Sign-in in a single integration using the RPX API. It also does Google, MySpace, Yahoo, and OpenID authentication. Check it out: http://rpxnow.com/

    Reply
  3. Cotton Rohrscheib says

    May 11, 2009 at 6:01 pm

    Very Slick Brian, thanks for posting, will check that out. Is there a wordpress plugin available as of yet for authentication?

    Reply

Please Drop Your Questions or CommentsCancel reply

Let’s Connect

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • EP:032 – Cotton Rohrscheib & Diana DeHart
  • Challenges & Opportunities Going into 2025
  • Find us at the 2025 Arkansas Women in Agriculture Conference in Hot Springs, Arkansas
  • Be Sure to Checkout FBN’s Farmers First™  Crop Nutrition & Adjuvant Lineup for 2025
  • What we all need in Dark Times…

Blog Categories

  • Blog (419)
  • Entertainment (376)
  • Faith & Family (147)
  • Farm & Business (288)
  • Health & Wellness (33)
  • Marketing & Tech (584)
  • Podcasts (31)
  • Urban Farming (20)
  • Weekend Projects (1)

Listen & Subscribe

Blog Archives

Join the Cotton Club!

 

Content Copyright: 2001-2025
Cotton Rohrscheib | Rohrscheib Capital