Hello,
I am using the download tool to use a POST API but am stuck on the authorization part. I've received two errors from the application (BuildingOS)
DownloadData
{"errors":[{"message":"Invalid username/password."}]}
DownloadData
{"errors":[{"message":"username/password not properly base64 encoded."}]}
I've tried using an article here that gave the following directions but I don't find the part on base64 encoding very descriptive. Could someone help clarify how to use the base 64encoded tool with the download tool for basic authorization? Thanks
- Basic Authentication
- The implementation of this usually looks like [clientid:clientsecret] or [username : password] base 64 encoded and then prepended with "Basic" as the value for the header "Authorization".
- In your workflow, you can take in the client id and secret or username and password, and use the Formula tool to prepare the string for encoding. You can then use the base 64 encoder to encode the string, add “Basic” to the encoded string, and then use that as the value for an “Authorization” header in your Download tool