Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareGt Call NameLoad NameLoad Num CompareGt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str NameLoad Str NameLoad Str NameLoad Str Call NameLoad NameLoad Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignAdd NameStore BinOpMult Str BinOpSub Num BinOpMod Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A base64 N/A hashlib N/A hmac N/A httplib N/A os N/A time N/A urlparse generate_ext N/A N/A content_type body N/A N/A N/A Implements the notion of the ext as described in
    http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-02#section-3.1 N/A N/A N/A content_type None N/A body None N/A N/A len content_type 0 N/A N/A len body 0 N/A N/A content_type_plus_body N/A content_type body N/A content_type_plus_body_hash N/A N/A hashlib sha1 content_type_plus_body N/A ext N/A N/A content_type_plus_body_hash hexdigest N/A N/A ext N/A ext N/A build_normalized_request_string N/A N/A ts nonce http_method host port request_path ext N/A N/A N/A Implements the notion of a normalized request string as described in
    http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-02#section-3.2.1 N/A normalized_request_string N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ts nonce http_method request_path host N/A str port ext N/A normalized_request_string N/A generate_nonce N/A N/A N/A N/A N/A Generates a random string intend for use as a nonce when computing an
    HMAC. N/A N/A N/A base64 b64encode N/A N/A os urandom 8 N/A generate_signature N/A N/A mac_key normalized_request_string N/A N/A N/A Generate a request's MAC given a normalized request string (aka
    a summary of the key elements of the request and the mac key (shared
    secret). N/A mac_key N/A = N/A 4 N/A N/A len mac_key 4 N/A mac_key N/A N/A base64 urlsafe_b64decode mac_key N/A N/A N/A base64 b64encode N/A N/A N/A N/A hmac new mac_key normalized_request_string N/A hashlib sha1 digest N/A generate_authorization_header_value N/A N/A http_method url mac_key_identifier mac_key content_type body N/A N/A N/A url_parts N/A N/A urlparse urlparse url N/A port N/A url_parts port N/A N/A port N/A N/A N/A N/A url_parts scheme https N/A N/A port N/A str N/A httplib HTTPS_PORT N/A N/A port N/A str N/A httplib HTTP_PORT N/A ts N/A str N/A int N/A N/A time time N/A nonce N/A generate_nonce N/A ext N/A generate_ext content_type body N/A normalized_request_string N/A build_normalized_request_string ts nonce http_method N/A url_parts hostname port N/A url_parts path ext N/A signature N/A generate_signature mac_key normalized_request_string N/A N/A MAC id="%s", ts="%s", nonce="%s", ext="%s", mac="%s" N/A mac_key_identifier ts nonce ext signature N/A