2bi'SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK J r SSK J r J r Jr SSKJr SSKJr S rS rS r"S S 5r"SS\5r"SS\5r"SS\5rg)z] requests.auth ~~~~~~~~~~~~~ This module contains the authentication handlers for Requests. N) b64encode)to_native_string) basestringstrurlparse)extract_cookies_to_jar)parse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac :[U[5(d3[R"SR U5[ S9 [ U5n[U[5(d<[R"SR [U55[ S9 [ U5n[U[ 5(aURS5n[U[ 5(aURS5nS[[SRX455R55-nU$)zReturns a Basic Auth string.zNon-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.)categoryzNon-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 :) isinstancerwarningswarnformatDeprecationWarningrtypeencoderrjoinstrip)usernamepasswordauthstrs ڋ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/requests/auth.py_basic_auth_strrs h + +  x('  x= h + +  tH~.'  x=(C  ??8,(C  ??8,)$))X01288:G Nc\rSrSrSrSrSrg)AuthBaseEz4Base class that all auth implementations derive fromc[S5e)NzAuth hooks must be callable.)NotImplementedErrorselfrs r__call__AuthBase.__call__Hs!"@AArN__name__ __module__ __qualname____firstlineno____doc__r&__static_attributes__r(rrrrEs >Brrc0\rSrSrSrSrSrSrSrSr g) HTTPBasicAuthLz?Attaches HTTP Basic Authentication to the given Request object.cXlX lgN)rrr$rrs r__init__HTTPBasicAuth.__init__Os   rc |[UR[USS5:HUR[USS5:H/5$Nrrallrgetattrrr$others r__eq__HTTPBasicAuth.__eq__S>  D!AA  D!AA   rc X:X+$r4r(r=s r__ne__HTTPBasicAuth.__ne__[   rc`[URUR5URS'U$)N Authorizationrrrheadersr#s rr&HTTPBasicAuth.__call__^s$%4T]]DMM%R /"r)rrN) r*r+r,r-r.r6r?rCr&r/r(rrr1r1LsI! !rr1c\rSrSrSrSrSrg) HTTPProxyAuthcz=Attaches HTTP Proxy Authentication to a given Request object.c`[URUR5URS'U$)NzProxy-AuthorizationrHr#s rr&HTTPProxyAuth.__call__fs%+:4==$--+X '(rr(Nr)r(rrrLrLcs GrrLcH\rSrSrSrSrSrSrSrSr Sr S r S r S r g ) HTTPDigestAuthkz@Attaches HTTP Digest Authentication to the given Request object.cPXlX l[R"5Ulgr4)rr threadinglocal _thread_localr5s rr6HTTPDigestAuth.__init__ns  &__.rc[URS5(dgSURlSURlSURl0URlSURlSURlgg)NinitTr)hasattrrVrY last_nonce nonce_countchalpos num_401_calls)r$s rinit_per_thread_state$HTTPDigestAuth.init_per_thread_statetsnt))622&*D   #,.D   )-.D   *&(D   #%)D   "/3D   , 3rc ^URRSnURRSnURRRS5nURRRS5nURRRS5nSmUcSnOUR5nUS:XdUS:XaS n U mO#US :XaS n U mOUS :XaS n U mO US:XaSn U mU4Sjn TcgSn[ U5nUR =(d SnUR (aUSUR 3- nURSUSUR3nUSU3nT"U5nT"U5nX@RR:Xa UR=RS- sl OSURl URRSn[URR5RS5nUURS5- nU[R"5RS5- nU[R "S5- n["R$"U5R'5SSnUS:XaT"USUSU35nU(dU "UUSU35nO3US:XdSUR)S5;aUSUSUSU3nU "UU5nOgX@Rl SURSUSUSUS US!3 nU(a US"US!3- nU(a US#US!3- nU(a US$US!3- nU(a US%US&US!3- nS'U3$)(z :rtype: str realmnonceqop algorithmopaqueNMD5zMD5-SESSc[U[5(aURS5n[R"U5R 5$Nutf-8)rrrhashlibmd5 hexdigestxs rmd5_utf84HTTPDigestAuth.build_digest_header..md5_utf8s4a%%)A{{1~//11rSHAc[U[5(aURS5n[R"U5R 5$rk)rrrrmsha1rorps rsha_utf84HTTPDigestAuth.build_digest_header..sha_utf8s4a%%)A||A0022rzSHA-256c[U[5(aURS5n[R"U5R 5$rk)rrrrmsha256rorps r sha256_utf87HTTPDigestAuth.build_digest_header..sha256_utf85a%%)A~~a(2244rzSHA-512c[U[5(aURS5n[R"U5R 5$rk)rrrrmsha512rorps r sha512_utf87HTTPDigestAuth.build_digest_header..sha512_utf8r}rc>T"USU35$)N:r()sd hash_utf8s r4HTTPDigestAuth.build_digest_header..s)qc1#J/r/?rr08xrlauth,z:auth:z username="z ", realm="z ", nonce="z", uri="z ", response=""z , opaque="z , algorithm="z , digest="z, qop="auth", nc=z , cnonce="zDigest )rVr^getupperrpathqueryrrr\r]rrtimectimeosurandomrmrvrosplit)r$methodurlrdrerfrgrh _algorithmrrrwr{rKDentdigp_parsedrA1A2HA1HA2ncvaluercnoncerespdignoncebitbasers @rbuild_digest_header"HTTPDigestAuth.build_digest_header~s| ""''0""''0  %%))%0&&++// < ##((,,X6  J"*J  * ": 2 !I 5  3 !I 9 $ 5 $I 9 $ 5 $I /  C=}}# >> a'( (D awa  7xq mm &&11 1    * *a / *-.D   *''33C8 "".. / 6 6w ? U\\' "" TZZ\  )) RZZ]a**,Sb1  #se1UG1VH56Cq./G F]f #6'!F86#?Hh'G(-%z% 5'J6wiq 2   j* *D  mI;a0 0D  j* *D  'y 6(!D DDrc JUR(aSURlgg)z)Reset num_401_calls counter on redirects.rN) is_redirectrVr`)r$r%kwargss rhandle_redirectHTTPDigestAuth.handle_redirects ==/0D   , rc lSURs=::aS:dO SURlU$URRb9URR R URR5 URRSS5nSUR5;GauURRS:GaZUR=RS- sl[R"S[RS 9n[URSUSS 95URlUR UR#5 URR%5n['UR(URUR*5 UR-UR(5 UR/UR0UR25URS 'UR4R6"U40UD6nUR8R;U5 XVlU$SURlU$) zW Takes the given response and tries digest-auth, if needed. :rtype: requests.Response iirzwww-authenticaterZdigestzdigest )flags)countrG) status_coderVr`r_requestbodyseekrIrlowerrecompile IGNORECASEr subr^contentclosecopyr _cookiesrawprepare_cookiesrrr connectionsendhistoryappend)r$r%rs_authpatprep_rs r handle_401HTTPDigestAuth.handle_401samm)c)/0D   ,H    ! ! - IINN   2 2 6 6 7126 v||~ %$*<*<*J*JQ*N    , , 1 ,**Zr}}=C&7FRS8T&UD   # II GGI99>>#D "4==!))QUU C   /,0,D,D TXX-DLL )""4262B JJ  a JI+,(rcUR5 URR(a3URURUR 5UR S'URR5URl URSUR5 URSUR5 SURlU$![a SURl Nhf=f)NrGresponser)rarVr\rrrrIrtellr_AttributeError register_hookrrr`r#s rr&HTTPDigestAuth.__call__s ""$    ( ()-)A)A!((AEE)RAIIo & *%&VV[[]D   "  DOO4  D$8$89+,( * &*D   "  *s )CC21C2c |[UR[USS5:HUR[USS5:H/5$r9r:r=s rr?HTTPDigestAuth.__eq__2rArc X:X+$r4r(r=s rrCHTTPDigestAuth.__ne__:rEr)rVrrN)r*r+r,r-r.r6rarrrr&r?rCr/r(rrrQrQks0J/ 4l \1 +Z( !rrQ)r.rmrrrTrrbase64r_internal_utilsrcompatrrrcookiesr utilsr CONTENT_TYPE_FORM_URLENCODEDCONTENT_TYPE_MULTI_PARTrrr1rLrQr(rrrst  ---+$B/)XBBH.MP!XP!r