Skip to end of metadata
Go to start of metadata

Be sure to click on 'update to HTTP Header' button to use current authentication information.


The following authorizations are supported:

  • Basic
  • OAuth 1.0

Basic

This is the simplest authorization for a request.

You pass in your username and password to authenticate the request. It will be encoded to 'Authorization' request's headers as you can see below. 

To learn, please refer to this guide.

 

OAuth 1.0

The following fields are supported in Katalon Studio:

NameDescription
Consumer KeyThe API key associated with the application (Twitter, Facebook, etc.). This key (or 'client ID', as Facebook calls it) is what identifies the client, which is a website/service that is trying to access an end-user's resources.
Consumer SecretThe client's password that is used to authenticate with the authentication server, which is a Twitter/Facebook/etc. server that authenticates the client.
Signature MethodThe Consumer used this to sign the request For signature method RSA-SHA1, only support OpenSSL RSA Private key with PKCS#8 or PKCS#1 format
TokenWhat is issued to the client once the client successfully authenticates itself (using the consumer key & secret). This access token defines the privileges of the client (what data the client can and cannot access)
Token SecretThe string sent with the access token as a password
RealmThe Provider basically decides if this is of any importance. It is the counterpart of the WWW-authenticate response header. If a server returns a WWW-authenticate header of 'OAuth realm="https://api.example.com"' then it probably parses that value from the Authenticate request header in the OAuth process.

To know how to generate one of them, you can refer to this testing site and apply it based on your service provider. See the example below how to use this information:

  1. Use the following consumer key and secret to generate token:
    • Consumer: key
    • Consumer Secret: secret
  2. Generated token is shown in the response's body section. Use it in to generate access token:
  3. So far you've gained all the information needed to send a request using OAuth 1.0 authorization (consumer, access token), then use all these information to send a request:

This is just a quick tutorial on how to use Authorization for a Web Service object. You may need to adjust it accordingly based on your API specifications

  • No labels