OAuth1 Tutorial

This tutorial provides an example of enabling OAuth1 authorization for a REST request. To configure OAuth1 authorization:

  • Create and configure an authorization profile.
  • Retrieve an access token.

Here are detailed instructions:

1. Add Authorization Profile

To configure OAuth1 authorization, first add an authorization profile:

  • Open the REST Request for editing.

  • Open the Auth page.

  • From the Authorization box, select Add New Authorization:

  • In the subsequent dialog, select the OAuth 1.0 authorization type and enter the profile name. Click OK:

This will add a new OAuth 1.0 authorization profile to your project.

2. Get Access Token

OAuth1 uses Access Token and Token Secret to get access to the protected resource. If you already have these, enter the required values to corresponding fields. If you do not have these values, then follow these steps:

  • Click Get Token.

  • In the subsequent dialog, enter Consumer Key, Consumer Secret and connection URLs. For details, see the Retrieving Access Token topic.

  • Click the Get Access Token button:

  • SoapUI will display the login web page of the service to which you are connecting. Enter the user credentials there.

  • SoapUI will retrieve the Access Token and Token Secret values and put them to the respective fields:

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