
    Eg                     (    d dl Z  G d d          ZdS )    Nc                       e Zd ZdZd Zd ZdS )UpstreamAutha  
    This addon handles authentication to systems upstream from us for the
    upstream proxy and reverse proxy mode.

    NOTE: due to timing issues, upstream authentication has been moved
    to the HTTPLayer. It seems that when running in a multi-threaded
    environment, the hooks that apply authentication are not always
    invoked at the correct moment leading to sporadic proxy authorization
    failures. The root cause possibly lies in channel messaging but
    that would need further investigation.
    c                     d | _         d S )N)auth)selfs    k/var/www/sysmax/venv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/addons/upstream_auth.py__init__zUpstreamAuth.__init__   s    			    c                     |                     dt          j        t                   d d           |                     dt          j        t                   d d           d S )Nupstream_authz
            Add HTTP Basic authentication to upstream proxy and reverse proxy
            requests. Format: username:password.
            upstream_custom_authz
            Add custom authentication to upstream proxy requests by supplying
            the full value of the Proxy-Authorization header. 
            Format: <type> <credentials> - e.g. "Bearer mytoken123"
            )
add_optiontypingOptionalstr)r   loaders     r   loadzUpstreamAuth.load   sh    OC 		
 	
 	
 	"OC 			
 		
 		
 		
 		
r
   N)__name__
__module____qualname____doc__r	   r    r
   r   r   r      s<        
 
  
 
 
 
 
r
   r   )r   r   r   r
   r   <module>r      s@    $
 $
 $
 $
 $
 $
 $
 $
 $
 $
r
   