Authentication
To do most tasks in TestEngine, you must authenticate yourself. This topic describes how you can do this.
Basic authentication
In basic authentication, you must provide your Base64-encoded login and password in the Authorization
header. For example:
Authorization: Basic dXNlcjpwYXNzd29yZA==
Access token
When you use an access token, you authenticate your requests with a token issued by TestEngine. This authentication is more secure since you do not provide your credentials with every request.
The access token does not have an expiration date. If you need to reset the token, revoke it manually.
To authorize requests with an access token:
Get an access token by using the following operation:
POST http://<testengine-host>:8080/api/v1/token
TestEngine responds with a JSON object containing the access token:
Specify the
Authorized: Bearer <access token>
header to authenticate a request. See the examples below.
See details on SwaggerHub in the ReadyAPI TestEngine API – Generate Token section.
Revoke an access token
Revoke a single access token
Use the following operation:
DELETE http://<testengine-host>: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://<testengine-host>:8080/api/v1/tokens/
See details on SwaggerHub in the ReadyAPI TestEngine API – Delete All Tokens section.