🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 21:55:43 | PHP 8.2.33
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
oauthlib
/
oauth1
/
rfc5849
/
endpoints
/
__pycache__
📍 /usr/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/endpoints/__pycache__
🔄 Refresh
✏️
Editing: request_token.cpython-36.opt-1.pyc
Read Only
3 ,�[E$ � @ s^ d Z ddlmZmZ ddlZddlmZ ddlmZ ddl m Z eje�Z G d d � d e �ZdS )aV oauthlib.oauth1.rfc5849.endpoints.request_token ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of the request token provider logic of OAuth 1.0 RFC 5849. It validates the correctness of request token requests, creates and persists tokens as well as create the proper response to be returned to the client. � )�absolute_import�unicode_literalsN)� urlencode� )�errors� )�BaseEndpointc @ s* e Zd ZdZdd� Zd dd�Zdd � ZdS )�RequestTokenEndpointa� An endpoint responsible for providing OAuth 1 request tokens. Typical use is to instantiate with a request validator and invoke the ``create_request_token_response`` from a view function. The tuple returned has all information necessary (body, status, headers) to quickly form and return a proper response. See :doc:`/oauth1/validator` for details on which validator methods to implement for this endpoint. c C s8 | j � | j � dd�}|j|� | jj||� t|j� �S )z�Create and save a new request token. :param request: An oauthlib.common.Request object. :param credentials: A dict of extra token credentials. :returns: The token as an urlencoded string. �true)Zoauth_tokenZoauth_token_secretZoauth_callback_confirmed)Ztoken_generator�update�request_validatorZsave_request_tokenr �items)�self�request�credentials�token� r �#/usr/lib/python3.6/request_token.py�create_request_token"