summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_oidc_provider.cc
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@redhat.com>2021-01-21 18:11:30 +0100
committerDaniel Gryniewicz <dang@redhat.com>2021-03-02 13:35:05 +0100
commit497c9dbdd6500ff288d1e0f083d12f3c596a457b (patch)
treee8ac271820607988863480c8ec0ad9891656efc3 /src/rgw/rgw_oidc_provider.cc
parentRGW Zipper - random cleanups (diff)
downloadceph-497c9dbdd6500ff288d1e0f083d12f3c596a457b.tar.xz
ceph-497c9dbdd6500ff288d1e0f083d12f3c596a457b.zip
RGW Zipper - Add zone abstraction
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/rgw_oidc_provider.cc')
-rw-r--r--src/rgw/rgw_oidc_provider.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rgw/rgw_oidc_provider.cc b/src/rgw/rgw_oidc_provider.cc
index 7e420bbeb52..b4aa9ea4026 100644
--- a/src/rgw/rgw_oidc_provider.cc
+++ b/src/rgw/rgw_oidc_provider.cc
@@ -35,7 +35,7 @@ int RGWOIDCProvider::store_url(const string& url, bool exclusive,
bufferlist bl;
encode(*this, bl);
- return store->put_system_obj(store->get_zone_params().oidc_pool, oid,
+ return store->put_system_obj(store->get_zone()->get_params().oidc_pool, oid,
bl, exclusive, NULL, real_time(), y);
}
@@ -92,7 +92,7 @@ int RGWOIDCProvider::create(const DoutPrefixProvider *dpp, bool exclusive, optio
sprintf(buf + strlen(buf),".%dZ",(int)tv.tv_usec/1000);
creation_date.assign(buf, strlen(buf));
- auto& pool = store->get_zone_params().oidc_pool;
+ auto& pool = store->get_zone()->get_params().oidc_pool;
ret = store_url(idp_url, exclusive, y);
if (ret < 0) {
ldpp_dout(dpp, 0) << "ERROR: storing role info in pool: " << pool.name << ": "
@@ -105,7 +105,7 @@ int RGWOIDCProvider::create(const DoutPrefixProvider *dpp, bool exclusive, optio
int RGWOIDCProvider::delete_obj(optional_yield y)
{
- auto& pool = store->get_zone_params().oidc_pool;
+ auto& pool = store->get_zone()->get_params().oidc_pool;
string url, tenant;
auto ret = get_tenant_url_from_arn(tenant, url);
@@ -182,7 +182,7 @@ void RGWOIDCProvider::decode_json(JSONObj *obj)
int RGWOIDCProvider::read_url(const DoutPrefixProvider *dpp, const string& url, const string& tenant)
{
- auto& pool = store->get_zone_params().oidc_pool;
+ auto& pool = store->get_zone()->get_params().oidc_pool;
string oid = tenant + get_url_oid_prefix() + url;
bufferlist bl;
@@ -240,7 +240,7 @@ int RGWOIDCProvider::get_providers(const DoutPrefixProvider *dpp,
const string& tenant,
vector<RGWOIDCProvider>& providers)
{
- auto pool = store->get_zone_params().oidc_pool;
+ auto pool = store->get_zone()->get_params().oidc_pool;
string prefix = tenant + oidc_url_oid_prefix;
//Get the filtered objects