Authenticating by encoding through Postman


In Postman, sometimes we need to verify the eligibility of a user accessing a particular resource on the server. This is done by authenticating the credentials of a user by the system.

Thus authentication helps to identify the identity of a user and is applied for the secured APIs. In Postman, this is carried out under the Authorization tab. The TYPE dropdown in the Authorization tab, lists down all the Authorization types.

To carry out an encoded authentication, we have to choose the option No Auth from the TYPE dropdown in the Authorization tab and simultaneously from the Headers tab, we have to incorporate a new key-value pair.

The key should be Authorization and the value is the user credentials having the syntax as - basic <encoded user credentials>. Let us take an endpoint as The username for this endpoint is postman and the password is password.

Next, to add the credentials in the encoded format we shall take the help of a third party application having the link − Enter the username (postman) and password (password) in the edit box in the format − postman − password as shown in the below image. Then click on Encode.

We will obtain an encoded text cG9zdG1hbjpwYXNzd29yZA== at the bottom of the page. This has to be added as the value of the Authorization key in Postman in the format − basic cG9zdG1hbjpwYXNzd29yZA==. Then send the API request.

The Response code is 200 OK which points to a successful request.

Published on 03-Aug-2021 13:10:36