Follow

Basic Authentication

Basic authentication is a technique some endpoints use to control access to their web resources. In order to make a successful request to these endpoints, you'll need to add an Authorization header to the outbound mapping in your delivery step

inline1465346906.png

Next, you'll need to enter a value for the "flow field or raw value" field. Most endpoints will require you to encode a particular value or set of values for this. This information can typically be found in their documentation. Some examples of values that need to be encoded include API keys and username/password combinations. 

For example, if your endpoint requires your to base64 encode a username and password separated by a colon, you would:

  1. Visit a website that performs base64 encoding (e.g. http://ostermiller.org/calc/encode.html)
  2. Paste the requested value into their form (e.g. "yourusername:yourpassword") and click "encode"
  3. Copy the base64 encoded version of the combination which may look something like this: eW91cnVzZXJuYW1lOnlvdXJwYXNzd29yZA==
  4. Paste that value into the "flow field or raw value" field associated with the Authorization header
  5. Prepend that base 64 value with the word "Basic" and a space (see below)

Screen_Shot_2017-03-02_at_1.16.51_PM.png

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

You must be logged in to comment.