![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/oauthlib/oauth1/rfc5849/__pycache__/ |
o ���a} � @ s� d Z ddlZddlZddlZddlZddlZddlmZmZm Z ddl mZ ddl mZ e�e�Zdededed efd d�ZdMded ed efdd�Z dNdd�Zd efdd�Zdedededefdd�Z dOdefdd�Zdd � ZdOd!d"�Zd#d$� Zd%d&� ZdOd'd(�Zd)d*� Zdefd+d,�Z dOdedefd-d.�Z i Z!defd/d0�Z"d1d2� Z#deded3efd4d5�Z$ded6efd7d8�Z%d9d:� Z&d6efd;d<�Z'd=d>� Z(defd?d@�Z)d6efdAdB�Z*defdCdD�Z+d6efdEdF�Z,dGdH� Z-dIdJ� Z.dOdKdL�Z/dS )Pa� This module is an implementation of `section 3.4`_ of RFC 5849. **Usage** Steps for signing a request: 1. Collect parameters from the request using ``collect_parameters``. 2. Normalize those parameters using ``normalize_parameters``. 3. Create the *base string URI* using ``base_string_uri``. 4. Create the *signature base string* from the above three components using ``signature_base_string``. 5. Pass the *signature base string* and the client credentials to one of the sign-with-client functions. The HMAC-based signing functions needs client credentials with secrets. The RSA-based signing functions needs client credentials with an RSA private key. To verify a request, pass the request and credentials to one of the verify functions. The HMAC-based signing functions needs the shared secrets. The RSA-based verify functions needs the RSA public key. **Scope** All of the functions in this module should be considered internal to OAuthLib, since they are not imported into the "oauthlib.oauth1" module. Programs using OAuthLib should not use directly invoke any of the functions in this module. **Deprecated functions** The "sign_" methods that are not "_with_client" have been deprecated. They may be removed in a future release. Since they are all internal functions, this should have no impact on properly behaving programs. .. _`section 3.4`: https://tools.ietf.org/html/rfc5849#section-3.4 � N)�extract_params�safe_string_equals� urldecode� )�utils�http_method�base_str_uri�%normalized_encoded_request_parameters�returnc C s>