o
    ÚtBh  ã                   @   s   G d d„ dƒZ dS )c                   @   s   e Zd Zedd„ ƒZdS )ÚOAuth2c                 C   s   | j }d |¡|jd< dS )a9   Add OAuth2 authentication to the request.

        Args:
            config (Configuration): The Configuration object which holds the
                authentication information.
            http_request (HttpRequest): The HttpRequest object to which
                authentication header will be added.

        z	Bearer {}ÚAuthorizationN)Úaccess_tokenÚformatÚheaders)ÚconfigÚhttp_requestÚtoken© r	   úp/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/square/http/auth/o_auth_2.pyÚapply   s   zOAuth2.applyN)Ú__name__Ú
__module__Ú__qualname__Ústaticmethodr   r	   r	   r	   r
   r      s    r   N)r   r	   r	   r	   r
   Ú<module>   s   