Encode Credentials to Base 64 (Basic Authentication)

Encode Credentials to Base 64 (Basic Authentication)

Last Updated On July 28, 2019
You are here:
< Back

Basic Access Authentication requires us to encode our authentication info to base 64. You may run into this requirement when trying to access your API platform of interest.

Encode credentials

To encode your credentials, just open up Developer Tools in your browser (F12 on Windows/Linux or option + ⌘ + J on OSX). In the console, type in the following and click enter:

Some platforms may require you to encode slightly different details, e.g. an API key instead of a user name, or a colon (:) in the middle. The platform documentation / support should contain the exact details of what needs to be encoded.

You’ll need to substitute in your own user credentials, like this (don’t forget the plus sign in the middle):
github-api-img6

(If you have any problems with the above, you can also try a tool like Basic Authentication Header Generator to generate your header.)

Enter credentials into API Connector

Copy the output, excluding the quotation marks, and enter it into the headers section of the API Connector form, like this:
api-connector-headers-img1

Comments:0

Leave a Reply

Your email address will not be published.