Authentication

Most tasks in TestEngine require authentication. This topic describes how to authenticate.

Basic authentication

Basic authentication requires your Base64-encoded username and password in the Authorization header. For example:

Authorization: Basic <base64-encoded-credentials>

Access token

An access token lets you authenticate requests with a token issued by TestEngine. This method is more secure because you do not provide your credentials with every request.

The access token has no expiration date. To reset the token, revoke it manually.

To authorize requests with an access token:

  1. Get an access token by using the following operation:

    POST  http://localhost:8080/api/v1/token
  2. TestEngine responds with a JSON object containing the access token:

  3. Specify the Authorized: Bearer <access token> header to authenticate a request. See the examples below.

See the Generate Token section in the ReadyAPI TestEngine API on SwaggerHub for details..

Revoke an access token

Revoke a single access token

Use the following operation:

DELETE  http://localhost:8080/api/v1/token/

See details on SwaggerHub in the ReadyAPI TestEngine API – Delete Token section.

Revoke all your access tokens

Use the following operation:

DELETE  http://localhost:8080/api/v1/tokens/

See details on SwaggerHub in the ReadyAPI TestEngine API – Delete All Tokens section.

See Also

Publication date: