Terminology

In order to understand OAuth 1.0, it is first necessary to define the fundamental concepts used within the protocol. To make these concepts easier to grasp, this guide will analyze OAuth 1.0 in the context of a common real-world scenario: signing in with Twitter and accesing the Twitter API. That said, the concepts themselves apply to other OAuth 1.0-protected services, and the details described in this guide are not specific to Twitter.

In this scenario, your application will prompt the user to sign in with Twitter. Twitter will then authenticate the user. Once Twitter has obtained the user's consent, Twitter will issue an access token to your application. Your application then uses the access token to access the API.

In OAuth 1.0 terminology, Twitter is a service provider. A service provider is a web service that allows access via OAuth. A service provider authenticates the user and obtains authorization. Authorization is typically obtained by prompting the user for their consent. Once authorization has been obtained, the service provider issues access tokens to the application.

The Twitter API provides access to protected resources hosted by the service provider. These resources are typically HTTP endpoints and require an access token as a credential to authenticate a request. In the case of Twitter, these resources are users, tweets, direct messages, and other information people might share on a social network.

Your application is a consumer. The consumer requests authorization from the user and, if granted, uses the issued access token to access protected resources.

SEARCH FOR STRATEGIES

0STRATEGIES