auto apl = apl_factory->create_apl_remote(cct, s, get_acl_strategy(*t),
get_creds_info(*t, accepted_roles.admin));
- return result_t::grant(std::move(apl), completer_factory());
+ return result_t::grant(std::move(apl), completer_factory(boost::none));
}
}
auto apl = apl_factory->create_apl_remote(cct, s, get_acl_strategy(),
get_creds_info(base64_token));
- return result_t::grant(std::move(apl), completer_factory());
+ return result_t::grant(std::move(apl), completer_factory(boost::none));
}
}
auto apl = apl_factory->create_apl_local(cct, s, user_info, k.subuser);
- return result_t::grant(std::move(apl), completer_factory());
+ return result_t::grant(std::move(apl), completer_factory(k.key));
}
const std::string& string_to_sign)>;
/* Return an instance of Completer for verifying the payload's fingerprint
- * if necessary. Otherwise caller gets nullptr. */
+ * if necessary. Otherwise caller gets nullptr. Caller may provide secret
+ * key */
using completer_factory_t = \
- std::function<rgw::auth::Completer::cmplptr_t(void)>;
+ std::function<rgw::auth::Completer::cmplptr_t(
+ const boost::optional<std::string>& secret_key)>;
virtual std::tuple<access_key_id_t,
signature_t,