/* Name of Account */
virtual string get_acct_name() const = 0;
+
+ /* Subuser of Account */
+ virtual string get_subuser() const = 0;
};
inline std::ostream& operator<<(std::ostream& out,
return token_claims.user_name;
}
+ string get_subuser() const override {
+ return {};
+ }
+
struct Factory {
virtual ~Factory() {}
void load_acct_info(const DoutPrefixProvider* dpp, RGWUserInfo& user_info) const override; /* out */
uint32_t get_identity_type() const override { return info.acct_type; }
string get_acct_name() const override { return info.acct_name; }
+ string get_subuser() const override { return {}; }
struct Factory {
virtual ~Factory() {}
void load_acct_info(const DoutPrefixProvider* dpp, RGWUserInfo& user_info) const override; /* out */
uint32_t get_identity_type() const override { return TYPE_RGW; }
string get_acct_name() const override { return {}; }
+ string get_subuser() const override { return subuser; }
struct Factory {
virtual ~Factory() {}
void load_acct_info(const DoutPrefixProvider* dpp, RGWUserInfo& user_info) const override; /* out */
uint32_t get_identity_type() const override { return TYPE_ROLE; }
string get_acct_name() const override { return {}; }
+ string get_subuser() const override { return {}; }
void modify_request_state(const DoutPrefixProvider* dpp, req_state* s) const override;
struct Factory {