summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_swift_auth.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2019-06-12 06:12:32 +0200
committerCasey Bodley <cbodley@redhat.com>2019-07-29 21:20:49 +0200
commit5fdad7671948cfcbe71c4a625d91a7b800568255 (patch)
tree38f4bbe669f9be634636ad52c0f7e156d05c15b7 /src/rgw/rgw_swift_auth.h
parentrgw: svc.bilog: move more functionality in (diff)
downloadceph-5fdad7671948cfcbe71c4a625d91a7b800568255.tar.xz
ceph-5fdad7671948cfcbe71c4a625d91a7b800568255.zip
rgw: more api adjustments
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_swift_auth.h')
-rw-r--r--src/rgw/rgw_swift_auth.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/rgw/rgw_swift_auth.h b/src/rgw/rgw_swift_auth.h
index f437e0e5785..f6ddc39c5d7 100644
--- a/src/rgw/rgw_swift_auth.h
+++ b/src/rgw/rgw_swift_auth.h
@@ -39,7 +39,7 @@ class TempURLEngine : public rgw::auth::Engine {
using result_t = rgw::auth::Engine::result_t;
CephContext* const cct;
- /* const */ RGWUserCtl* const user_ctl;
+ /* const */ RGWCtl* const ctl;
const TempURLApplier::Factory* const apl_factory;
/* Helper methods. */
@@ -56,10 +56,10 @@ class TempURLEngine : public rgw::auth::Engine {
public:
TempURLEngine(CephContext* const cct,
- /*const*/ RGWUserCtl* const user_ctl,
+ /*const*/ RGWCtl* const ctl,
const TempURLApplier::Factory* const apl_factory)
: cct(cct),
- user_ctl(user_ctl),
+ ctl(ctl),
apl_factory(apl_factory) {
}
@@ -77,7 +77,7 @@ class SignedTokenEngine : public rgw::auth::Engine {
using result_t = rgw::auth::Engine::result_t;
CephContext* const cct;
- RGWUserCtl* const user_ctl;
+ RGWCtl* const ctl;
const rgw::auth::TokenExtractor* const extractor;
const rgw::auth::LocalApplier::Factory* const apl_factory;
@@ -88,11 +88,11 @@ class SignedTokenEngine : public rgw::auth::Engine {
public:
SignedTokenEngine(CephContext* const cct,
- /* const */RGWUserCtl* const user_ctl,
+ /* const */RGWCtl* const ctl,
const rgw::auth::TokenExtractor* const extractor,
const rgw::auth::LocalApplier::Factory* const apl_factory)
: cct(cct),
- user_ctl(user_ctl),
+ ctl(ctl),
extractor(extractor),
apl_factory(apl_factory) {
}
@@ -112,7 +112,7 @@ class ExternalTokenEngine : public rgw::auth::Engine {
using result_t = rgw::auth::Engine::result_t;
CephContext* const cct;
- RGWUserCtl* const user_ctl;
+ RGWCtl* const ctl;
const rgw::auth::TokenExtractor* const extractor;
const rgw::auth::LocalApplier::Factory* const apl_factory;
@@ -123,11 +123,11 @@ class ExternalTokenEngine : public rgw::auth::Engine {
public:
ExternalTokenEngine(CephContext* const cct,
- /* const */RGWUserCtl* const user_ctl,
+ /* const */RGWCtl* const ctl,
const rgw::auth::TokenExtractor* const extractor,
const rgw::auth::LocalApplier::Factory* const apl_factory)
: cct(cct),
- user_ctl(user_ctl),
+ ctl(ctl),
extractor(extractor),
apl_factory(apl_factory) {
}
@@ -168,7 +168,7 @@ class DefaultStrategy : public rgw::auth::Strategy,
public rgw::auth::RemoteApplier::Factory,
public rgw::auth::LocalApplier::Factory,
public rgw::auth::swift::TempURLApplier::Factory {
- RGWUserCtl* const user_ctl;
+ RGWCtl* const ctl;
/* The engines. */
const rgw::auth::swift::TempURLEngine tempurl_engine;
@@ -194,9 +194,9 @@ class DefaultStrategy : public rgw::auth::Strategy,
acl_strategy_t&& extra_acl_strategy,
const rgw::auth::RemoteApplier::AuthInfo &info) const override {
auto apl = \
- rgw::auth::add_3rdparty(user_ctl, s->account_name,
- rgw::auth::add_sysreq(cct, user_ctl, s,
- rgw::auth::RemoteApplier(cct, user_ctl, std::move(extra_acl_strategy), info,
+ rgw::auth::add_3rdparty(ctl, s->account_name,
+ rgw::auth::add_sysreq(cct, ctl, s,
+ rgw::auth::RemoteApplier(cct, ctl, std::move(extra_acl_strategy), info,
cct->_conf->rgw_keystone_implicit_tenants)));
/* TODO(rzarzynski): replace with static_ptr. */
return aplptr_t(new decltype(apl)(std::move(apl)));
@@ -208,8 +208,8 @@ class DefaultStrategy : public rgw::auth::Strategy,
const std::string& subuser,
const boost::optional<uint32_t>& perm_mask) const override {
auto apl = \
- rgw::auth::add_3rdparty(user_ctl, s->account_name,
- rgw::auth::add_sysreq(cct, user_ctl, s,
+ rgw::auth::add_3rdparty(ctl, s->account_name,
+ rgw::auth::add_sysreq(cct, ctl, s,
rgw::auth::LocalApplier(cct, user_info, subuser, perm_mask)));
/* TODO(rzarzynski): replace with static_ptr. */
return aplptr_t(new decltype(apl)(std::move(apl)));
@@ -226,17 +226,17 @@ class DefaultStrategy : public rgw::auth::Strategy,
public:
DefaultStrategy(CephContext* const cct,
- RGWUserCtl* const user_ctl)
- : user_ctl(user_ctl),
+ RGWCtl* const ctl)
+ : ctl(ctl),
tempurl_engine(cct,
- user_ctl,
+ ctl,
static_cast<rgw::auth::swift::TempURLApplier::Factory*>(this)),
signed_engine(cct,
- user_ctl,
+ ctl,
static_cast<rgw::auth::TokenExtractor*>(this),
static_cast<rgw::auth::LocalApplier::Factory*>(this)),
external_engine(cct,
- user_ctl,
+ ctl,
static_cast<rgw::auth::TokenExtractor*>(this),
static_cast<rgw::auth::LocalApplier::Factory*>(this)),
anon_engine(cct,
@@ -294,7 +294,7 @@ public:
~RGWHandler_SWIFT_Auth() override {}
RGWOp *op_get() override;
- int init(RGWUserCtl *user_ctl, struct req_state *state, rgw::io::BasicClient *cio) override;
+ int init(RGWRados *store, struct req_state *state, rgw::io::BasicClient *cio) override;
int authorize(const DoutPrefixProvider *dpp) override;
int postauth_init() override { return 0; }
int read_permissions(RGWOp *op) override { return 0; }