diff options
author | Radoslaw Zarzynski <rzarzynski@mirantis.com> | 2017-03-20 04:35:42 +0100 |
---|---|---|
committer | Radoslaw Zarzynski <rzarzynski@mirantis.com> | 2017-03-24 22:45:28 +0100 |
commit | 9888ec33d54613dd91fac05d30567daf14c6b31b (patch) | |
tree | ee04ecbfcb7b3498b781c5cc13b3f93cadaec0f1 /src/rgw/rgw_rest_bucket.h | |
parent | rgw: the S3's local v2 auth engine becomes a fallback conditionally. (diff) | |
download | ceph-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.h | 7 |
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); } }; |