} while (is_truncated);
}
+
+ if (op_state.mfa_ids_specified) {
+ user_info.mfa_ids = op_state.mfa_ids;
+ }
op_state.set_user_info(user_info);
// if we're supposed to modify keys, do so
std::string key; // secret key
int32_t key_type;
+ std::set<string> mfa_ids;
+
// operation attributes
bool existing_user;
bool existing_key;
bool found_by_uid;
bool found_by_email;
bool found_by_key;
+ bool mfa_ids_specified;
// req parameters
bool populated;
user_quota_specified = true;
}
+ void set_mfa_ids(const std::set<string>& ids) {
+ mfa_ids = ids;
+ mfa_ids_specified = true;
+ }
+
bool is_populated() { return populated; }
bool is_initialized() { return initialized; }
bool has_existing_user() { return existing_user; }
uint32_t get_op_mask() { return op_mask; }
RGWQuotaInfo& get_bucket_quota() { return bucket_quota; }
RGWQuotaInfo& get_user_quota() { return user_quota; }
+ set<string>& get_mfa_ids() { return mfa_ids; }
rgw_user& get_user_id() { return user_id; }
std::string get_subuser() { return subuser; }
found_by_uid = false;
found_by_email = false;
found_by_key = false;
+ mfa_ids_specified = false;
}
};