3 Authentication with Twitter OAuth

Chapter 2, “Exploring the Twitter API and Search API,” covered the various Twitter API and Search API methods using cURL and twitter-async using Basic Authentication. Basic Authentication is by no means unique to Twitter, and many sites and social services also use the same mechanism for user authentication. However, requiring a user’s password even over a secure connection such as HTTPS can present security concerns. Although the barrier to entry is higher for an OAuth implementation in comparison to Basic Authentication, it is an essential tool for accessing the Twitter API because Basic Authentication will be deprecated in the future.

This chapter investigates Twitter’s implementation of OAuth as an alternative ...

Get The Developer’s Guide to Social Programming: Building Social Context Using Facebook, Google Friend Connect, and the Twitter API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.