a f@s\ddlmZzddlmZWney:ddlmZYn0ddlmZGdddeZdS))AuthBase)urlparse) HeaderSignerc@s"eZdZdZdddZddZdS) HTTPSignatureAutha Sign a request using the http-signature scheme. https://github.com/joyent/node-http-signature/blob/master/http_signing.md key_id is the mandatory label indicating to the server which secret to use secret is the filename of a pem file in the case of rsa, a password string in the case of an hmac algorithm algorithm is one of the six specified algorithms headers is a list of http headers to be included in the signing string, defaulting to "Date" alone. NcCs2|pg}t||||d|_ddd|Dv|_dS)N)key_idsecret algorithmheadershostcSsg|] }|qS)lower).0hr r J/usr/lib/python3.9/site-packages/oci/_vendor/httpsig_cffi/requests_auth.py $z.HTTPSignatureAuth.__init__..)r header_signer uses_host)selfrr r r r r r__init__szHTTPSignatureAuth.__init__cCs<|jj|j|jrt|jjnd|j|jd}|j ||S)N)r methodpath) rsignr rrurlnetlocrZpath_urlupdate)rrr r r r__call__&s zHTTPSignatureAuth.__call__)rrNN)__name__ __module__ __qualname____doc__rrr r r rrs rN)Zoci._vendor.requests.authr urllib.parser ImportErrorrrrr r r rs