Hi,
I'm trying to use STS to access OSS as described here. My scenario is following:
1) Client react app calls FC Compute Function via API Gateway and submit some information
2) Function validate the information and if it is ok then function calls sts.assumeRole and specify permission to GET* for all resources in OSS using AccessKeyId and AccessKeySecret of sub-account
3) The new STS temporary token is created and it is returned to client
4) Client initialize OSS client with returned AccessKeyId, AccessKeySecret and SecurityToken
5) Client try to download selected file
6) This error is thrown:
Error: The OSS Access Key Id you provided does not exist in our records.
at Client.requestE rror$ (aliyun-oss-sdk.js:619)
at tryCatch (aliyun-oss-sdk.js:15266)
at Generator.invok e [as _invoke] (aliyun-oss-sdk.js:15500)
at Generator.proto type.(anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:12651 6:21)
at onFulfilled (aliyun-oss-sdk.js:6100)
Is there something I'm doing wrong or there could be some problem on OSS?
Thanks for any help,
Marek
I'm trying to use STS to access OSS as described here. My scenario is following:
1) Client react app calls FC Compute Function via API Gateway and submit some information
2) Function validate the information and if it is ok then function calls sts.assumeRole and specify permission to GET* for all resources in OSS using AccessKeyId and AccessKeySecret of sub-account
3) The new STS temporary token is created and it is returned to client
4) Client initialize OSS client with returned AccessKeyId, AccessKeySecret and SecurityToken
5) Client try to download selected file
6) This error is thrown:
Error: The OSS Access Key Id you provided does not exist in our records.
at Client.requestE rror$ (aliyun-oss-sdk.js:619)
at tryCatch (aliyun-oss-sdk.js:15266)
at Generator.invok e [as _invoke] (aliyun-oss-sdk.js:15500)
at Generator.proto type.(anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:12651 6:21)
at onFulfilled (aliyun-oss-sdk.js:6100)
Is there something I'm doing wrong or there could be some problem on OSS?
Thanks for any help,
Marek
Comment