A REST API service requires authentication based on the username and password. The user “john” has the password “384279060” and the Base64 encoding of those credentials is “am9objowMTIzNDU2Nzg=”. Which method completes an authentication request?
For Basic Authentication in REST APIs, the Base64 encoded credentials must be included in the header of the HTTP request. The correct method is to include the following header in the request:
Authorization: Basic am9objowMTlzNDU2Nzg=
[: Cisco DevNet Associate Certification Guide, Chapter on REST API Authentication methods.]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit