OAuth 1.0 enables client applications to access data provided by a third-party API. For example, as a user of a service, you can grant another application access to your data with that service without exposing details like your username and password. Accessing user data with OAuth 1.0 involves a few requests back and forth between client application, user, and service provider.
OAuth 1.0 is sometimes referred to as "two-legged" (auth only between client and server) or "three-legged" (where a client requests data for a user of a third-party service). An example OAuth 1.0 flow could run as follows:
Postman supports OAuth Core 1.0 Revision A.
To use OAuth 1.0, do the following:
In the Authorization tab for a request, select OAuth 1.0 from the Auth Type dropdown list.
Select the Add authorization to dropdown list to specify if you want to pass the auth details in the request headers, or body and URL.
Select a Signature Method from the dropdown list that your API uses to authenticate requests. Then enter specific details depending on whether you select an HMAC, PLAINTEXT, or RSA signature method. Learn about the details required for an HMAC or PLAINTEXT signature, and an RSA signature.
You can optionally set advanced details, but Postman will try to generate values for them if necessary.
From the Add authorization to dropdown list, select whether you want to pass the auth details in the request headers or body. You can open the Headers or Body tab if you want to check how the details will be included with the request.
If you send the OAuth 1.0 data in the headers, an Authorization header sending your key and secret values is appended to the string OAuth
together with additional comma-separated required details. Postman will append the OAuth 1.0 information to the request Headers when you have completed all required fields in your Authorization setup.
If you send the OAuth 1.0 data in the body and URL, the data is added either in the request Body or Parameters depending on the request method.
If the request method is POST
or PUT
, and if the request body type is x-www-form-urlencoded
, Postman will add the authorization parameters to the request body. Otherwise, for example in a GET
request, your key and secret data will be passed in the URL query parameters.
To use an HMAC or PLAINTEXT signature method, enter the following details:
To use an RSA signature method, enter the following details:
The advanced parameters are as follows:
WWW-Authenticate
response header.application/x-www-form-urlencoded
. (Deactivated when you're using callback URL / verifier.)If your server implementation of OAuth 1.0 requires it, select Add empty parameters to signature.
You can also select the checkbox to Encode the parameters in the authorization header for your request.
Last modified: 2024/08/16
Additional resources
Videos
Blog posts
Case Studies