diff options
author | Kalpesh Pandya <kapandya@redhat.com> | 2023-02-21 12:56:41 +0100 |
---|---|---|
committer | Kalpesh Pandya <kapandya@redhat.com> | 2023-06-19 23:48:30 +0200 |
commit | 02e604fc94ecbab77b08bad84acd719ab2863a9e (patch) | |
tree | 589bdee559407c5b8553a9749107e2f814d8eeef /src/rgw/rgw_rest_sts.cc | |
parent | src/rgw: Changing null_yield to optional_yield (diff) | |
download | ceph-02e604fc94ecbab77b08bad84acd719ab2863a9e.tar.xz ceph-02e604fc94ecbab77b08bad84acd719ab2863a9e.zip |
src/rgw: Changing null_yield to optional_yield
Changing null_yield in rgw_sal_rados.cc
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_sts.cc')
-rw-r--r-- | src/rgw/rgw_rest_sts.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rgw/rgw_rest_sts.cc b/src/rgw/rgw_rest_sts.cc index 09f77f61d5f..c5bd8b1b707 100644 --- a/src/rgw/rgw_rest_sts.cc +++ b/src/rgw/rgw_rest_sts.cc @@ -80,7 +80,7 @@ WebTokenEngine::get_role_name(const string& role_arn) const } std::unique_ptr<rgw::sal::RGWOIDCProvider> -WebTokenEngine::get_provider(const DoutPrefixProvider *dpp, const string& role_arn, const string& iss) const +WebTokenEngine::get_provider(const DoutPrefixProvider *dpp, const string& role_arn, const string& iss, optional_yield y) const { string tenant = get_role_tenant(role_arn); @@ -104,7 +104,7 @@ WebTokenEngine::get_provider(const DoutPrefixProvider *dpp, const string& role_a std::unique_ptr<rgw::sal::RGWOIDCProvider> provider = driver->get_oidc_provider(); provider->set_arn(p_arn); provider->set_tenant(tenant); - auto ret = provider->get(dpp); + auto ret = provider->get(dpp, y); if (ret < 0) { return nullptr; } @@ -248,7 +248,7 @@ WebTokenEngine::get_from_jwt(const DoutPrefixProvider* dpp, const std::string& t } string role_arn = s->info.args.get("RoleArn"); - auto provider = get_provider(dpp, role_arn, iss); + auto provider = get_provider(dpp, role_arn, iss, y); if (! provider) { ldpp_dout(dpp, 0) << "Couldn't get oidc provider info using input iss" << iss << dendl; throw -EACCES; |