Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

While creating the API tests, if any API requires authentication, follow the below steps to create an API Authentication.

Creating API Authentication :

  1. Click on Configure on the left panel.

  2. Click on API Authentication.

  3. Enter the meta-data :

    1. Authentication Name

    2. Select Authentication Type : None, Basic, Digest, BearerToken, Oauth1, Oauth2

      If you select Basic or Digest, User Name and Password fields will be displayed.

      Image Added

      Image Added


      If you select BearerToken, Token Type and Bearer Token fields will be displayed.

      Image Added

      If you already have a token (Basic token, Bearer token, Digest token, Oauth token etc.), you can simply add the token type and token in the fields and use the authentication.
      Suppose the client has provided you a Basic type authorization token

      Image Added


      You can simply use the token as below

      Image Added

      If you select Oauth1, below fields will be displayed.

      Image Added


      If you select Oauth2, below fields will be displayed.

      Image Added

  4. Enter the details and click on Save.
    Once you save the API Authentication, it will be displayed under the Authentication dropdown within the API test.