Files
witness-fracture/.venv/lib/python3.12/site-packages/requests/__pycache__/auth.cpython-312.pyc
T

70 lines
14 KiB
Plaintext
Raw Normal View History

2025-06-23 17:55:02 -05:00
Ë
Œ»YhÊ'ãóà—dZddlZddlZddlZddlZddlZddlZddlmZddl m
Z
ddl m Z m
Z
mZddlmZddlmZd Zd
Zd „ZGd „d
«ZGd„de«ZGd„de«ZGd„de«Zy)z]
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
éN)Ú b64encodeé)Úto_native_string)Ú
basestringÚstrÚurlparse)Úextract_cookies_to_jar)Úparse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac ó—t|t«s5tjdj |«t
¬«t
|«}t|t«s>tjdj t|««t
¬«t
|«}t|t «r|jd«}t|t «r|jd«}dttdj||f««j««z}|S)zReturns a Basic Auth string.z·Non-string usernames will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.)Úcategoryz·Non-string passwords will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.Úlatin1zBasic ó:)
Ú
isinstancerÚwarningsÚwarnÚformatÚDeprecationWarningrÚtypeÚencoderrÚjoinÚstrip)ÚusernameÚpasswordÚauthstrs úV/mnt/c/fieldcraft/witness-fracture/.venv/lib/python3.12/site-packages/requests/auth.pyÚ_basic_auth_strrsÜ€ô �h¤
Ô +Ü�
‰
ð
÷™˜xÓ(Ü'õ 
ô�x“=ˆä �h¤
Ô +Ü�
‰
ð
÷™œt H›~Ó.Ü'õ 
ô�x“=ˆô�(œCÔ Ø—?‘? 8Ó,ˆä�(œCÔ Ø—?‘? 8Ó,ˆàÔ)Ü�$—)‘)˜X xÐ0Ó1Ó2×8Ñ8Ó:óñ€Gð €Nócó—eZdZdZd„Zy)ÚAuthBasez4Base class that all auth implementations derive fromcó—td«‚)NzAuth hooks must be callable.)ÚNotImplementedError©ÚselfÚrs rÚ__call__zAuthBase.__call__Hs€Ü!Ð"@ÓAÐArN©Ú__name__Ú
__module__Ú __qualname__Ú__doc__r%©rrrrEs „Ù>óBrrcó(—eZdZdZd„Zd„Zd„Zd„Zy)Ú
HTTPBasicAuthz?Attaches HTTP Basic Authentication to the given Request object.có —||_||_y©N)rr©r#rrs rÚ__init__zHTTPBasicAuth.__init__Os€Ø ˆŒ
Ø ˆ�
rc ó|—t|jt|dd«k(|jt|dd«k(g«S©Nrr©ÚallrÚgetattrr©r#Úothers rÚ__eq__zHTTPBasicAuth.__eq__Só>€Üà—
‘
¤¨°
¸DÓ!AÑAØ—
‘
¤¨°
¸DÓ!AÑAð
ó
ð
rcó—||k( Sr/r+r7s rÚ__ne__zHTTPBasicAuth.__ne__[ó€Ø˜5‘=Ð Ð rcó`—t|j|j«|jd<|S)NÚ
Authorization©rrrÚheadersr"s rr%zHTTPBasicAuth.__call__^s$€Ü%4°T·]±]ÀDÇMÁMÓ%Rˆ� ‰ �/Ñ"؈rN)r'r(r)r*r1r9r<r%r+rrr-r-Ls„ÙIò!ò
ò!órr-có—eZdZdZd„Zy)Ú
HTTPProxyAuthz=Attaches HTTP Proxy Authentication to a given Request object.có`—t|j|j«|jd<|S)NzProxy-Authorizationr@r"s rr%zHTTPProxyAuth.__call__fs%€Ü+:¸4¿=¹=È$Ï-É-Ó+Xˆ� ‰ Ð'Ñ(؈rNr&r+rrrCrCcs
„ÙGórrCcó@—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z
d „Z y
) ÚHTTPDigestAuthz@Attaches HTTP Digest Authentication to the given Request object.cóR—||_||_tj«|_yr/)rrÚ threadingÚlocalÚ
_thread_localr0s rr1zHTTPDigestAuth.__init__ns€Ø ˆŒ
Ø ˆŒ
ä&Ÿ_™_Ó.ˆÕrcóþ—t|jd«sgd|j_d|j_d|j_i|j_d|j_d|j_yy)NÚinitTÚr)ÚhasattrrJrLÚ
last_nonceÚ nonce_countÚchalÚposÚ
num_401_calls)r#s rÚinit_per_thread_statez$HTTPDigestAuth.init_per_thread_statetsk€ä�t×)Ñ)¨6Ô2Ø&*ˆD× Ñ Ô #Ø,.ˆD× Ñ Ô )Ø-.ˆD× Ñ Ô *Ø&(ˆD× Ñ Ô #Ø%)ˆD× Ñ Ô "Ø/3ˆD× Ñ Õ ,ð
3rc óB‡—|jjd}|jjd}|jjjd«}|jjjd«}|jjjd«}dŠ|€d}n|j«}|dk(s|dk(rd „} | Šn |d
k(rd „}
|
Šn|d k(rd
„} | Šn
|dk(rd„} | Šˆfd„}
‰€yd}t |«}|j
xsd}|j r|d|j ›�z
}|j›d|›d|j›�}|›d|›�}‰|«}‰|«}||jjk(r |jxjdz
c_
nd|j_
|jjd›}t|jj«jd«}||jd«z
}|tj«jd«z
}|tj d«z
}t#j$|«j'«dd}|dk(r‰|›d|›d|›�«}|s|
||›d|›�«}n0|dk(sd|j)d«vr|›d|›d|›d|›�}|