IBM / ibm-cos-sdk-js

ibm-cos-sdk-js
Apache License 2.0
38 stars 19 forks source link

How to Generate Pre-Singed URL? #15

Closed mdumanoj closed 6 years ago

mdumanoj commented 6 years ago

Is there any way to generate the Pre-signed URL by using this SDK? I want to create a temporary URL with Expiration time to access the object in the bucket. I tried using getSignedUrl but I am getting response as Presigning only supports S3 or SigV4 signing.

How to do SigV4 signing using this SDK? If it is possible some example would be much appreciated.

wbhuberIBM commented 6 years ago

@mdumanoj the JS SDK does not support presigned urls with IAM credentials. You will need to use access & secret keys if possible. We will implement some updates to improve the message returned in this scenario.

wbhuberIBM commented 6 years ago

This is a duplicate of issue #11 - closing this issue.