OAuth 1 Authentication Tutorial

Applies to ReadyAPI 3.53, last modified on May 15, 2024

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:

  1. Open a REST request.

  2. Open the Auth panel and click Add Authorization Profile:

    OAuth 1: Adding Authentication Profile

    Click the image to enlarge it.

  3. In the resulting dialog, select the OAuth 1.0 type and enter the profile name. Click OK.

    OAuth 1: Add Authentication Dialog

    Click the image to enlarge it.

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:

  1. Click Get Access Token.

  2. In the resulting dialog, enter the Consumer Key, Consumer Secret and connection URLs. Click Get Access Token. For details, see Access Token Retrieval.

    OAuth 1: Credentials

    Click the image to enlarge it.

  3. ReadyAPI will display the login page of the service to which you are connecting. Enter the user credentials there.

  4. ReadyAPI will retrieve the Access Token and Token Secret values and place them in the respective fields:

    OAuth 1: Auth tab

    Click the image to enlarge it.

You can now use the configured OAuth 1.0 authorization profile for your requests.

See Also

About OAuth 1.0 Authentication
Access Token Retrieval

Highlight search results