using temporary_url to store static large objects

asked 2015-07-30 13:31:23 -0500

I am trying to figure out how to use temporary_urls to create a static large object. I have 2 keys set up in the account. I was able to generate temporary_form_post urls to post the individual segment objects buzz1, buzz2, buzz3, buzz4, and buzz5. When I try to generate a temporary_url to put the manifest:

method = 'PUT'
duration_in_seconds = 60*5 # 5 minutes
expires = + duration_in_seconds
path = "/v1/AUTH_frds/static_large_object/buzz?multipart-manifest=put"
hmac_body = [method,expires.to_i,path].join("\n")
digest ='sha1')
signature = OpenSSL::HMAC.hexdigest(digest, key, hmac_body)

I put a json file with that temp_url_sig and temp_url_expires. And I get

Errors: static_large_object/buzz1, 401 Unauthorized static_large_object/buzz2, 401 Unauthorized static_large_object/buzz3, 401 Unauthorized static_large_object/buzz4, 401 Unauthorized static_large_object/buzz5, 401 Unauthorized

I have created this static_large_object file using an Auth Token without any problems

edit retag flag offensive close merge delete