�
ǡ�~7.�� � � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m
Z
mZmZ ddl
mZ ddlmZ ddlmZ d Zd
Zd� Z G d� d
e� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )z]
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
� N)� b64encode� )�urlparse�str�
basestring)�extract_cookies_to_jar)�to_native_string)�parse_dict_headerz!application/x-www-form-urlencodedzmultipart/form-datac � � t | t � � s=t j d� | � � t
�� � t
| � � } t |t � � sJt j d� t |� � � � t
�� � t
|� � }t | t � � r| � d� � } t |t � � r|� d� � }dt t d� | |f� � � � � � � � � 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�encoder r �join�strip)�username�password�authstrs �m/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/requests/auth.py�_basic_auth_strr s6 � � �h�
�+�+� !��
�
� ��x�(�(�'�
�
�
�
� �x�=�=���h�
�+�+� !��
�
� ��t�H�~�~�.�.�'�
�
�
�
� �x�=�=�� �(�C� � � -��?�?�8�,�,���(�C� � � -��?�?�8�,�,���)��$�)�)�X�x�0�1�1�2�2�8�8�:�:�� � �G� �N� c � � e Zd ZdZd� ZdS )�AuthBasez4Base class that all auth implementations derive fromc � � t d� � �)NzAuth hooks must be callable.)�NotImplementedError��self�rs r �__call__zAuthBase.__call__K s � �!�"@�A�A�Ar N��__name__�
__module__�__qualname__�__doc__r% � r r r r H s. � � � � � �>�>�B� B� B� B� Br r c �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�
HTTPBasicAuthz?Attaches HTTP Basic Authentication to the given Request object.c �"