rgw: settle rgw::auth::{IdentityApplier,Completer} in req_state.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
Radoslaw Zarzynski 2017-01-26 18:18:53 +01:00
parent 58f0df7a17
commit da14fd9364

View File

@ -1729,6 +1729,11 @@ struct req_state {
* of a given RGWOp). Thus, it bounds authentication and authorization steps
* through a well-defined interface. For more details, see rgw_auth.h. */
std::unique_ptr<RGWIdentityApplier> auth_identity;
struct {
/* TODO(rzarzynski): switch out to the static_ptr. */
std::unique_ptr<rgw::auth::Identity> identity;
std::unique_ptr<rgw::auth::Completer> completer;
} auth;
std::unique_ptr<RGWAccessControlPolicy> user_acl;
RGWAccessControlPolicy *bucket_acl;