|
@@ -65,14 +65,12 @@ class StsOssView(View):
|
|
|
req.set_DurationSeconds(3600)
|
|
|
Resource_access = "acs:oss:*:*:{bucket_name}/{userID}*".format(bucket_name=bucket_name,
|
|
|
userID=userID)
|
|
|
- Resource_access_root = "acs:oss:*:*:{bucket_name}".format(bucket_name=bucket_name)
|
|
|
- # Resource_access_root = "acs:oss:*:*:{bucket_name}".format(bucket_name=bucket_name)
|
|
|
- print(Resource_access)
|
|
|
policys = {
|
|
|
"Version": "1",
|
|
|
"Statement": [
|
|
|
{
|
|
|
- "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject", "oss:List*"],
|
|
|
+ # "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject", "oss:List*"],
|
|
|
+ "Action": ["*"],
|
|
|
# "Action": ["*"],
|
|
|
# "Resource": [Resource_access],
|
|
|
"Resource": ["*"],
|