This tutorial explains how to enable OAuth 1 authorization for a REST request.
To configure OAuth 1 authorization, you need to –
- Create and configure an authorization profile.
- Retrieve an access token.
1. Add an Authorization Profile
First, add an OAuth 1.0 authorization profile:
-
Open a REST request.
-
Open the Auth panel and click Add Authorization Profile:
-
In the resulting dialog, select the OAuth 1.0 type and enter the profile name. Click OK.
This will add a new OAuth 1.0 authorization profile to your project.
2. Get an Access Token
OAuth 1 uses Access Token and Token Secret to get access to a protected resource. If you already have them, enter the required values in the corresponding fields. If you do not have these values, then follow these steps:
-
Click Get Access Token.
-
In the resulting dialog, enter the Consumer Key, Consumer Secret and connection URLs. Click Get Access Token. For details, see Access Token Retrieval.
-
ReadyAPI will display the login page of the service to which you are connecting. Enter the user credentials there.
-
ReadyAPI will retrieve the Access Token and Token Secret values and place them in the respective fields:
You can now use the configured OAuth 1.0 authorization profile for your requests.