Basic authentication is a technique some endpoints use to control access to their web resources. To make a successful request to these endpoints, you’ll need to add an Authorization header to the outbound mapping in your delivery step.
Next, you’ll need to enter a value for the “flow field or raw value” field. Most endpoints 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 you to base64 encode a username and password separated by a colon, you would:
- Visit a website that performs base64 encoding (e.g., http://ostermiller.org/calc/encode.html)
- Paste the requested value into their form (e.g., “yourusername:yourpassword”) and click “encode”
- Copy the base64 encoded version of the combination, which may look something like this: eW91cnVzZXJuYW1lOnlvdXJwYXNzd29yZA==
- Paste that value into the “flow field or raw value” field associated with the Authorization header
- Prepend that base64 value with the word “Basic” and a space (see below)
Comments
0 comments
Please sign in to leave a comment.