Defining Authentication
The authentication property allows you to define the authentication method for your requests. We currently support Basic
, OAuth 1.0a
, and Client Certificate
. If you want to use OAuth2, we recommend using subtest steps, and you can find more information about it in this blog post. The type of authentication is defined in the auth_type
property, and each method requires different properties. You can find them in these following examples.
Defining Authentication with Basic Auth
Sample POST Body (JSON) with Basic Auth
"auth": {
"auth_type": "basic",
"username": "authBasicUsername",
"password": "authBasicPassword"
}
Defining Authentication with OAuth 1.0
Sample POST Body (JSON) with OAuth 1.0 with signature type set to Authorization header. Other accepted values for signature_type
are: body
and query
"auth": {
"auth_type": "oauth_1",
"access_token": "accessToken",
"consumer_secret": "consumerSecret",
"signature_type": "auth_header",
"consumer_key": "consumerKey",
"token_secret": "tokenSecret"
}
Defining Authentication with Client Certificate
Sample POST Body (JSON) to set {{myUserId}} with Client Certificate auth
"auth": {
"auth_type": "client_certificate"
}