]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: settle rgw::auth::{IdentityApplier,Completer} in req_state.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 26 Jan 2017 17:18:53 +0000 (18:18 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 24 Mar 2017 15:54:34 +0000 (16:54 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_common.h

index 2aa20009bf83523450e4d3681807bfde0c8d5f14..3fbe8df82d10742c638f6ee4ce32eb5f5a8320c4 100644 (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;