o
    }j6hn  ã                   @   sP  d dl Z d dlZd dlZddlT zejjZW n ey"   ejZY nw e d¡Z	dd„ Z
dej ej Ze e¡ d¡Ze e d	ej ej ¡e e d
¡ ¡ ¡ ¡ d¡Zej ¡  d¡ e
¡Ze ¡  d¡ e¡Zee d
¡ eeB  Ze e e e¡¡¡Z edƒZ!e!e dƒedƒB  Z"e  ¡ Z#e e e"¡¡Z$ddd„Z%ddd„Z&dS )é    Né   )Ú*z\\(.)c                 C   s   t  d|d dd… ¡S )Nz\1r   r   éÿÿÿÿ)ÚUNQUOTE_PAIRSÚsub)ÚsÚlÚt© r
   ú\/var/www/html/chefvision.cloud.itp360.com/venv/lib/python3.10/site-packages/httplib2/auth.pyÚ<lambda>   s    r   z!#$%&'*+-.^_`|~Útokenz-._~+/ú=Útoken68zquoted-stringzauth-param-nameÚschemeÚparamsúauthentication-infoc              
   C   sP   |   |d¡ ¡ }|si S z
t |¡}W | ¡ S  tjy' } zt|ƒ‚d}~ww )z(https://tools.ietf.org/html/rfc7615
    Ú N)ÚgetÚstripÚauthentication_infoÚparseStringÚppÚParseExceptionÚMalformedHeaderÚasDict)ÚheadersÚ
headernameÚheaderÚparsedÚexr
   r
   r   Ú_parse_authentication_info%   s   ü€þr!   úwww-authenticatec              
   C   s\   |   |d¡ ¡ }|si S zt |¡}W n tjy$ } zt|ƒ‚d}~ww dd„ |D ƒ}|S )z?Returns a dictionary of dictionaries, one dict per auth_scheme.r   Nc                 S   s8   i | ]}|d    ¡ d|v r|d  ¡ nd| d¡i“qS )r   r   r   )Úlowerr   r   )Ú.0Ú	challenger
   r
   r   Ú
<dictcomp>?   s    
ýÿýz+_parse_www_authenticate.<locals>.<dictcomp>)r   r   Úwww_authenticater   r   r   r   )r   r   r   r   r    Úretvalr
   r
   r   Ú_parse_www_authenticate4   s   €þür)   )r   )r"   )'Úbase64ÚreÚ	pyparsingr   ÚerrorÚcommonÚdowncaseTokensÚAttributeErrorÚcompiler   ÚunquoteÚnumsÚalphasÚtcharÚWordÚsetNamer   ÚCombineÚOptionalÚleaveWhitespacer   ÚdblQuotedStringÚcopyÚsetParseActionÚquoted_stringÚaddParseActionÚauth_param_nameÚSuppressÚ
auth_paramÚDictÚdelimitedListÚGroupr   r   r%   r   r'   r!   r)   r
   r
   r
   r   Ú<module>   s4    
ÿ
0ÿ
