summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_rest_bucket.h
diff options
context:
space:
mode:
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>2017-03-20 04:35:42 +0100
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>2017-03-24 22:45:28 +0100
commit9888ec33d54613dd91fac05d30567daf14c6b31b (patch)
treeee04ecbfcb7b3498b781c5cc13b3f93cadaec0f1 /src/rgw/rgw_rest_bucket.h
parentrgw: the S3's local v2 auth engine becomes a fallback conditionally. (diff)
downloadceph-9888ec33d54613dd91fac05d30567daf14c6b31b.tar.xz
ceph-9888ec33d54613dd91fac05d30567daf14c6b31b.zip
rgw: implement the dynamic reconfiguration of auth strategies.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Diffstat (limited to 'src/rgw/rgw_rest_bucket.h')
-rw-r--r--src/rgw/rgw_rest_bucket.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rgw/rgw_rest_bucket.h b/src/rgw/rgw_rest_bucket.h
index 108151500ba..19bfd7347f8 100644
--- a/src/rgw/rgw_rest_bucket.h
+++ b/src/rgw/rgw_rest_bucket.h
@@ -15,8 +15,8 @@ protected:
RGWOp *op_post() override;
RGWOp *op_delete() override;
public:
- RGWHandler_Bucket() {}
- ~RGWHandler_Bucket() override {}
+ using RGWHandler_Auth_S3::RGWHandler_Auth_S3;
+ ~RGWHandler_Bucket() override = default;
int read_permissions(RGWOp*) override {
return 0;
@@ -29,8 +29,9 @@ public:
~RGWRESTMgr_Bucket() override = default;
RGWHandler_REST* get_handler(struct req_state*,
+ const rgw::auth::StrategyRegistry& auth_registry,
const std::string&) override {
- return new RGWHandler_Bucket;
+ return new RGWHandler_Bucket(auth_registry);
}
};