CDNetworks Documentation Object Storage API Include Signatures in URL

Include Signatures in URL

Last update:2022-04-15 18:00:02

you can also add your signatures to the URL by using query string parameters, which is useful when you want to express a request entirely in a URL. Others can use the the signed URL to access your OS resources temporarily without having your AccessKeySecret.

Example of signed URL

http://bucketName.s3-cn-east=1.wcsapi.com/keyName
?Signature=hXrFL6wBspF7fNE7lChnOIBEpE4%3D
&AWSAccessKeyId=db17ab5d18c137f786b67c490187317a0738f94a
&Expires=1639390003

Note:Line feeds are added for readability

Parameters

Parameter Name Required Description
Expires Yes The time when the signed URL expires.

Type: string

If the time that OS receives the request is later than the value of this parameter, a request timeout error is returned.
AWSAccessKeyId Yes AK information.

Type: string
Signature Yes The signature information.
The following code shows the format of signature:
Signature = urlencode(base64(hmacsha1(AccessKeySecret, VERB + “\n” + CONTENT-MD5 + “\n” + CONTENT-TYPE + “\n” + EXPIRES + “\n” + CanonicalizedOSSHeaders + CanonicalizedResource)))
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!