How do I properly auth to the upload URL? Using ColdFusion here.

  • 1
  • Question
  • Updated 2 months ago
Everything works fine until I get to the part where I post to the upload URL that is returned to me. Then, I receive the error: "SignatureDoesNotMatch:The request signature we calculated does not match the signature you provided. Check your key and signing method." What could be going on? I am using ColdFusion, *NOT* PHP. CF and/or plain English responses will suffice. It is worth noting that if I pass in the Basic auth in the header here, I get the error: "InvalidArgument: Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified" I assume the upload URL already contains my auth? Why would it return SignatureDoesNotMatch though? Has anyone successfully went through the entire process with ColdFusion? PHP is not an option available to me. Company does not use it.
Photo of Stephanie Fischer

Stephanie Fischer

  • 13 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Saravanan Kannan

Saravanan Kannan, Employee

  • 37 Posts
  • 6 Reply Likes
Hi Stephanie,

When you do the PUT request to the upload url that is returned to you in Step 1, you don't need to set the Authorization in the header explicitly as the url itself has in it.

Thanks
Saravanan
Photo of Saravanan Kannan

Saravanan Kannan, Employee

  • 37 Posts
  • 6 Reply Likes
Hi Stephanie,

From what I understand, you are still not able to upload/PUT your file to the s3 url, you received in step 1. If thats the case, do you mind sending the sending request id, you got from step 1, I can check in the logs, if I can get any useful information from it.

Thanks
Saravanan
Photo of Stephanie Fischer

Stephanie Fischer

  • 13 Posts
  • 0 Reply Likes
Thank you. It is: 19637301-14b4-426f-a24b-bbe8d67995f. Now, I receive "Forbidden." I had a trial of the business API. How can I get this trial back? I need to be able to verify that we will be able to use RightSignature, and thus able to make our last call here, prior to the small company I work for, purchasing.
Photo of Saravanan Kannan

Saravanan Kannan, Employee

  • 37 Posts
  • 6 Reply Likes
Stephanie,

Sorry, I could not find a sending request with the provided id. Also if your trial is expired, you can try reaching our sales at 1-800-921-4250 or https://rightsignature.com/contact-us and see if they could extend or help you set up a new one.

Thanks
Saravanan
Photo of Stephanie Fischer

Stephanie Fischer

  • 13 Posts
  • 0 Reply Likes
Thank you. My trial is back on. My ID I got from my most recent test is: 7c1bcc66-6035-48fd-a5ab-d138cb091d91. This is the sending request ID, correct? Are you able to find this in the system? I am still left with my issue I would like to work out. Thanks again!!!

Photo of Stephanie Fischer

Stephanie Fischer

  • 13 Posts
  • 0 Reply Likes
Please respond. Please let me know whether the upload URL I received is correct or whether my server may have messed it up. Here it is:

https://rightsignature-sr-production.s3.amazonaws.com/public_api/sending_requests/00781214-38e4-4b7c-9325-1d861a0c4edd/testingfile_3.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3O5OABKJS3RDKI72%2F20180928%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180928T174950Z&X-Amz-Expires=3600&X-Amz-Security-Token=FQoGZXIvYXdzEJP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDOTIO2xIp%2B%2BVNuVqYiK3AyEOgtQqgLQUasSBdcHiG7GqPMrJptLF0ZpmiUg55q6MqgV4cgcz5bHVBB1eu8axYHks4ZrG%2FVNJkdlP09JZq5z85jsCiliYAJzp%2B8fytkdIdm%2B%2F10wOGy43Tgk3amKFfNcd16eCo288nEFy5rlOhdaQyq73PrflZFjGbL6jA6gr%2FIeSW1Jr0fJG8MdI7bMoFFqhClTuoZQiy4NPkV5ppyB%2BlUtJAT62xAkAvqUfRqp8%2Bxr61atE%2FI7zzqX%2FPI9wEW75Z0S4BoO%2Ff2YlEdc%2F5V3onJiMxbV%2FSjyGfyocJtL7c8MuYwBbq6OAGt3juEYZro2VopXrMbsdQ6XBGMFv%2FRf33fk1l4f0rQxSNN9rUuX%2FCbfSXfbDTPYfxgQTCf6MBOg1txUoEmCZRnBw3CI0CDAKdDvBXnqXy%2Bv%2BPk5AoR4KHgu%2FOIOpYh9Uf4INXKxwNtnpjMUoOfKVTWvuBIf4nqREkHI5QBXY7LSaePzadIBUnFuKRBtoOQsOupBiNuKmSBlLVRxt5KHtPXVnMDddvhSNzC49tPj96k89P2LftrsHEpO%2Bca%2F%2BHNHMJqN%2F8ZpICxnkOFZEQf8oo8O53QU%3D&X-Amz-Signature=85d091fe9dc705b3c44053fbdf452cd092efacf9533d4cf33ddb94f3fb398262&X-Amz-SignedHeaders=Host&x-amz-acl=private file: