chenjunkai 6 years ago
parent
commit
75081699b4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Controller/StsOssController.py

+ 2 - 4
Controller/StsOssController.py

@@ -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": ["*"],