Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias If CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num Num body ImportFrom alias alias alias orelse ImportFrom alias alias alias Import alias Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str FunctionDef arguments args defaults body Return Call NameLoad Str Call NameLoad decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr attr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str ImportFrom alias If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Str keyword Call AttributeLoad NameLoad attr NameLoad Str keyword Call AttributeLoad NameLoad attr NameLoad Str keyword Call AttributeLoad NameLoad attr NameLoad Str keyword Call AttributeLoad NameLoad attr NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr comprehension NameStore AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr IfExp AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A requests N/A logging N/A uuid N/A hashlib N/A hmac N/A base64 N/A re N/A sys requests.auth AuthBase time gmtime strftime N/A N/A N/A N/A sys version_info N/A 0 3 N/A urllib.parse urlparse parse_qsl urlunparse N/A urlparse urlparse parse_qsl urlunparse N/A urllib3.contrib.pyopenssl N/A N/A N/A N/A N/A urllib3 contrib pyopenssl inject_into_urllib3 N/A logger N/A N/A logging getLogger __name__ N/A __all__ N/A EdgeGridAuth eg_timestamp N/A N/A N/A N/A N/A N/A strftime %Y%m%dT%H:%M:%S+0000 N/A gmtime N/A new_nonce N/A N/A N/A N/A N/A N/A N/A uuid uuid4 N/A base64_hmac_sha256 N/A N/A data key N/A N/A N/A N/A N/A N/A N/A base64 b64encode N/A N/A N/A N/A hmac new N/A N/A key encode utf8 N/A N/A data encode utf8 N/A hashlib sha256 digest decode utf8 N/A base64_sha256 N/A N/A data N/A N/A N/A N/A N/A N/A N/A base64 b64encode N/A N/A N/A N/A hashlib sha256 N/A N/A data encode utf8 digest decode utf8 N/A EdgeGridAuth N/A AuthBase N/A N/A A Requests authentication handler that provides Akamai {OPEN} EdgeGrid support.

    Basic Usage::
        >>> import requests
        >>> from akamai.edgegrid import EdgeGridAuth
        >>> s = requests.Session()
        >>> s.auth = EdgeGridAuth(
            client_token='cccccccccccccccccc',
            client_secret='sssssssssssssssss',
            access_token='aaaaaaaaaaaaaaaaa'
        )

     __init__ N/A N/A self client_token client_secret access_token headers_to_sign max_body N/A None 2048 N/A N/A Initialize authentication using the given parameters from the Luna Manage APIs
           Interface:

        :param client_token: Client token provided by "Credentials" ui
        :param client_secret: Client secret provided by "Credentials" ui
        :param access_token: Access token provided by "Authorizations" ui
        :param headers_to_sign: An ordered list header names that will be included in 
            the signature.  This will be provided by specific APIs. (default [])
        :param max_body: Maximum content body size for POST requests. This will be provided by
            specific APIs. (default 2048)

         N/A N/A self client_token client_token N/A N/A self client_secret client_secret N/A N/A self access_token access_token N/A headers_to_sign N/A N/A N/A self headers_to_sign N/A N/A N/A h lower N/A h headers_to_sign N/A N/A N/A self headers_to_sign N/A N/A N/A self max_body max_body N/A N/A self redirect_location None N/A from_edgerc N/A N/A rcinput section N/A default N/A N/A Returns an EdgeGridAuth object from the configuration from the given section of the 
           given edgerc file.

        :param filename: path to the edgerc file
        :param section: the section to use (this is the [bracketed] part of the edgerc, 
            default is 'default')

         edgerc EdgeRc N/A N/A isinstance rcinput EdgeRc N/A N/A rc rcinput N/A N/A rc N/A EdgeRc rcinput N/A N/A EdgeGridAuth client_token N/A N/A rc get section client_token client_secret N/A N/A rc get section client_secret access_token N/A N/A rc get section access_token headers_to_sign N/A N/A rc getlist section headers_to_sign max_body N/A N/A rc getint section max_body N/A staticmethod make_signing_key N/A N/A self timestamp N/A N/A N/A signing_key N/A base64_hmac_sha256 timestamp N/A self client_secret N/A N/A N/A logger debug signing key: %s signing_key N/A signing_key N/A canonicalize_headers N/A N/A self r N/A N/A N/A spaces_re N/A N/A re compile \s+ N/A N/A N/A join N/A N/A %s:%s N/A h N/A N/A spaces_re sub N/A N/A N/A N/A r headers N/A h strip N/A h N/A self headers_to_sign N/A h N/A r headers N/A make_content_hash N/A N/A self r N/A N/A N/A content_hash N/A prepared_body N/A N/A r body N/A N/A N/A logger debug body is '%s' prepared_body N/A N/A N/A N/A r method POST N/A N/A len prepared_body 0 N/A N/A N/A N/A logger debug signing content: %s prepared_body N/A N/A N/A len prepared_body N/A self max_body N/A N/A N/A N/A logger debug data length %d is larger than maximum %d N/A len prepared_body N/A self max_body N/A prepared_body N/A prepared_body N/A 0 N/A self max_body N/A N/A N/A logger debug data truncated to %d for computing the hash N/A len prepared_body N/A content_hash N/A base64_sha256 prepared_body N/A N/A N/A logger debug content hash is '%s' content_hash N/A content_hash N/A make_data_to_sign N/A N/A self r auth_header N/A N/A N/A parsed_url N/A urlparse N/A r url N/A N/A N/A N/A r headers get Host False N/A N/A netloc N/A N/A r headers N/A Host N/A N/A netloc N/A parsed_url netloc N/A data_to_sign N/A N/A join N/A N/A r method N/A parsed_url scheme netloc N/A N/A parsed_url path N/A N/A parsed_url query N/A ? N/A parsed_url query N/A N/A self canonicalize_headers r N/A N/A self make_content_hash r auth_header N/A N/A N/A logger debug data to sign: %s N/A N/A \t join N/A N/A data_to_sign split N/A data_to_sign N/A sign_request N/A N/A self r timestamp auth_header N/A N/A N/A N/A base64_hmac_sha256 N/A N/A self make_data_to_sign r auth_header N/A N/A self make_signing_key timestamp N/A make_auth_header N/A N/A self r timestamp nonce N/A N/A N/A kvps N/A N/A client_token N/A self client_token N/A access_token N/A self access_token N/A timestamp timestamp N/A nonce nonce N/A auth_header N/A N/A EG1-HMAC-SHA256  N/A N/A ; join N/A N/A %s=%s kvp N/A kvp kvps ; N/A N/A N/A logger debug unsigned authorization header: %s auth_header N/A signed_auth_header N/A N/A auth_header signature= N/A N/A self sign_request r timestamp auth_header N/A N/A N/A logger debug signed authorization header: %s signed_auth_header N/A signed_auth_header N/A handle_redirect N/A N/A self res N/A kwargs N/A N/A N/A res is_redirect N/A N/A redirect_location N/A N/A res headers N/A location N/A N/A N/A logger debug signing the redirected url: %s redirect_location N/A request_to_sign N/A N/A N/A res request copy N/A N/A request_to_sign url redirect_location N/A N/A N/A N/A res request headers N/A Authorization N/A N/A self make_auth_header request_to_sign N/A eg_timestamp N/A new_nonce N/A __call__ N/A N/A self r N/A N/A N/A timestamp N/A eg_timestamp N/A nonce N/A new_nonce N/A N/A N/A r headers N/A Authorization N/A N/A self make_auth_header r timestamp nonce N/A N/A N/A r register_hook response N/A self handle_redirect N/A r N/A N/A