A Short Primer on OAuth 2.0

OAuth 2.0 is the second version of an open API access delegation standard created by Twitter in early 2007. The most common use case of OAuth is to allow an end user to provide access to one API from another service. It’s somewhat like owning a car (the API), but lending valet keys to someone you trust so that person can drive it for you. The valet key may start the ignition, but it cannot open the trunk. This can come in handy if you’re sick and want someone to drive to buy you soup. In the virtual world you would, for example, give travel application TripIt access to your Facebook wall so it can post flights on your behalf.

OAuth terms can take a bit of getting used to. We won’t survey all of the intricate details, ...

Get Programming Google Glass 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.