medium
Single Answer
0

After you obtain an authentication token, how do you apply it to subsequent actions?

Answer Options

A

Add it as a variable named X-Auth-Token in the script.

B

Place it in the header of the request as an X-Auth-Token element.

C

Pass the token in the URI of subsequent requests.

D

Perform a POST for the authentication token within 10 seconds of the subsequent request.

Correct Answer: B

Explanation

After the initial POST to obtain the authentication token, it should be placed in the header of subsequent requests as an X-Auth-Token element. You will most likely use a variable to store the token, but a variable by itself is not enough to authenticate subsequent requests. The token is not passed in the URI of subsequent requests. Although performing a POST within 10 seconds of the subsequent request is a good idea, if the token is not placed in the header, it will not authenticate you.

cisco-dna-center
rest-api
authentication
headers