Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Assign NameStore CompareIn Str NameLoad orelse Raise Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list
N/A glance.common cfg glance.common exception glance.common utils glance.common wsgi glance.registry.db api db_api RequestContext N/A object N/A N/A 
    Stores information about the security context under which the user
    accesses the system, as well as additional request information.
     __init__ N/A N/A self auth_tok user tenant roles is_admin read_only show_deleted owner_is_tenant N/A None None None None False False False True N/A N/A N/A self auth_tok auth_tok N/A N/A self user user N/A N/A self tenant tenant N/A N/A self roles N/A roles N/A N/A N/A self is_admin is_admin N/A N/A self read_only read_only N/A N/A self _show_deleted show_deleted N/A N/A self owner_is_tenant owner_is_tenant N/A owner N/A N/A self N/A N/A N/A Return the owner to correlate with an image. N/A N/A N/A self owner_is_tenant N/A self tenant N/A self user N/A property show_deleted N/A N/A self N/A N/A N/A Admins can see deleted by default N/A N/A N/A self _show_deleted N/A self is_admin N/A N/A True N/A False N/A property N/A ContextMiddleware N/A N/A wsgi Middleware N/A N/A opts N/A N/A N/A cfg BoolOpt owner_is_tenant default True __init__ N/A N/A self app conf N/A local_conf N/A N/A N/A self conf conf N/A N/A N/A N/A self conf register_opts N/A self opts N/A N/A self ctxcls RequestContext N/A N/A context_class local_conf N/A N/A N/A self ctxcls N/A N/A utils import_class N/A local_conf N/A context_class N/A N/A N/A N/A super ContextMiddleware self __init__ app N/A make_context N/A N/A self N/A args kwargs N/A N/A 
        Create a context with the given arguments.
         N/A N/A N/A kwargs setdefault owner_is_tenant N/A N/A self conf owner_is_tenant N/A N/A N/A self ctxcls args kwargs N/A process_request N/A N/A self req N/A N/A N/A 
        Extract any authentication information in the request and
        construct an appropriate context from it.

        A few scenarios exist:

        1. If X-Auth-Token is passed in, then consult TENANT and ROLE headers
           to determine permissions.

        2. An X-Auth-Token was passed in, but the Identity-Status is not
           confirmed. For now, just raising a NotAuthorized exception.

        3. X-Auth-Token is omitted. If we were using Keystone, then the
           tokenauth middleware would have rejected the request, so we must be
           using NoAuth. In that case, assume that is_admin=True.
         N/A auth_tok N/A N/A N/A req headers get X-Auth-Token N/A N/A N/A req headers get X-Storage-Token N/A auth_tok N/A N/A N/A N/A N/A N/A req headers get X-Identity-Status Confirmed N/A N/A user N/A N/A N/A req headers get X-User N/A tenant N/A N/A N/A req headers get X-Tenant N/A roles N/A N/A N/A r strip N/A r N/A N/A N/A N/A N/A req headers get X-Role split , N/A is_admin N/A Admin roles N/A N/A N/A N/A exception NotAuthorized N/A N/A user None N/A tenant None N/A roles N/A N/A is_admin True N/A N/A req context N/A N/A self make_context auth_tok auth_tok user user tenant tenant roles roles is_admin is_admin N/A N/A