Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
+#include <array>
+
#include "rgw_common.h"
#include "rgw_auth.h"
#include "rgw_user.h"
const auto& user_name = token.get_user_name();
/* Construct all possible combinations including Swift's wildcards. */
- const std::vector<std::string> allowed_items = {
+ const std::array<std::string, 6> allowed_items = {
make_spec_item(tenant_uuid, user_uuid),
make_spec_item(tenant_name, user_name),
#include "rgw_auth_decoimpl.h"
#include "rgw_swift_auth.h"
+#include <array>
#include <sstream>
#include <memory>
RGWAnonymousAuthEngine anoneng(s->cct, &aplfact);
/* Pipeline. */
- const std::vector<const RGWAuthEngine *> engines = {
+ constexpr size_t ENGINES_NUM = 5;
+ const std::array<const RGWAuthEngine *, ENGINES_NUM> engines = {
&tempurl, &rgwtk, &keystone, &ext, &anoneng
};