Skip to content

Fear of an OAuth Planet

by C. Ross Jam on September 4, 2012

Twitter Bird Small For the final third of the year, I’m resurrecting my Twitter data collection project on a grander scale. More cities, more data, more processing, more analysis. The only major delta is that Twitter is seriously threatening to apply OAuth to all of its API endpoints. Since my little project isn’t really a Web application per se, the thought of having to do a 3-Legged OAuth handshake seemed daunting especially for the little ’ole Streaming API.

Fortunately, Peter Hoffman teed up an easy authentication workaround by just generating the tokens for the consumer and app through Twitter. Then you simply stash them away and appropriately sign your initial connection request.

Meanwhile, Greg Roodt at The Mosh Pit, goes the full Monty, explaining how even with the complete 3-Legged handshake, authenticating streaming with OAuth isn’t really that bad. Bonus props for pointing to a GitHub repository of sample code that can be conveniently forked and extended.

From → Uncategorized