D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
python3.6
/
site-packages
/
oauthlib
/
oauth1
/
rfc5849
/
__pycache__
/
Filename :
signature.cpython-36.pyc
back
Copy
3 ,�[A\ � @ s$ d Z ddlmZmZ ddlZddlZddlZddlZddlm Z m Z mZmZm Z ddlmZ yddlZW n ek r� ddljZY nX eje�Zdd� Zd(d d �Zdg ddd fdd�Zdd� Zdd� Zdd� Zdadd� Zdd� Zdd� Z dd� Z!dd� Z"d)d d!�Z#d"d#� Z$d$d%� Z%d*d&d'�Z&dS )+a� oauthlib.oauth1.rfc5849.signature ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module represents a direct implementation of `section 3.4`_ of the spec. Terminology: * Client: software interfacing with an OAuth API * Server: the API provider * Resource Owner: the user who is granting authorization to the client Steps for signing a request: 1. Collect parameters from the uri query, auth header, & body 2. Normalize those parameters 3. Normalize the uri 4. Pass the normalized uri, normalized parameters, and http method to construct the base string 5. Pass the base string and any keys needed to a signing function .. _`section 3.4`: https://tools.ietf.org/html/rfc5849#section-3.4 � )�absolute_import�unicode_literalsN)� bytes_type�extract_params�safe_string_equals�unicode_type� urldecode� )�utilsc C s>