Module Expr Str Import alias FunctionDef arguments args NameParam NameParam NameParam defaults Lambda arguments args defaults vararg kwarg NameLoad Str body Expr Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A  The HTTP Basic Auth module for Tornado  N/A base64 basic_auth N/A N/A auth_func after_login_func realm N/A N/A N/A N/A N/A args kwargs None Restricted N/A N/A 
    The Basic Auth decorator for Tornado handlers.

    :param auth_fun: The function to be used for checking the credentials
    :param after_login_func: Function to run after a user successfully logs in
    :param realm: The realm to which the user is authenticating
     basic_auth_decorator N/A N/A handler_class N/A N/A N/A 
        The template for the decorated handler class.

        :param handler_class: The Tornado handler class to be decorated.
         wrap_execute N/A N/A handler_execute N/A N/A N/A 
            Return the handler _execute method wrapped with auth utility.

            :param handler_execute: The handler's ._execute method.
             require_basic_auth N/A N/A handler kwargs N/A N/A N/A 
                Authenticates the user credentials.

                :param handler: The Tornado handler
                :param kwargs: Keyword arguments sent to _execute
                 create_auth_header N/A N/A N/A N/A N/A  Create HTTP header to ask for credentials.  N/A N/A N/A handler set_status 401 N/A N/A N/A handler set_header WWW-Authenticate N/A N/A Basic realm={} format realm N/A N/A handler _transforms N/A N/A N/A N/A handler finish N/A N/A auth_header N/A N/A N/A N/A handler request headers get Authorization N/A N/A N/A auth_header None N/A N/A N/A auth_header startswith Basic  N/A N/A N/A create_auth_header N/A N/A auth_decoded N/A N/A base64 decodestring N/A auth_header N/A 6 N/A N/A user pwd N/A N/A auth_decoded split : 2 N/A N/A auth_func user pwd N/A N/A N/A after_login_func handler kwargs user pwd N/A N/A N/A create_auth_header N/A _execute N/A N/A self transforms N/A args kwargs N/A N/A 
                Wrapped Tornado handler _execute method.
                Parameters are identical.
                 N/A N/A require_basic_auth self kwargs N/A N/A handler_execute self transforms args kwargs N/A N/A _execute N/A N/A N/A handler_class _execute N/A wrap_execute N/A handler_class _execute N/A handler_class N/A N/A basic_auth_decorator N/A