PHP WebShell
Текущая директория: /usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/clients/__pycache__
Просмотр файла: web_application.cpython-310.pyc
o
���a6/ � @ s@ d Z ddlZddlmZmZmZ ddlmZ G dd� de�ZdS ) z�
oauthlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of various logic needed
for consuming and providing OAuth 2.0 RFC6749.
� N� )�!parse_authorization_code_response�prepare_grant_uri�prepare_token_request� )�Clientc sL e Zd ZdZdZd� fdd� Z ddd�Z ddd�Zdd
d�Z� Z S )�WebApplicationClienta> A client utilizing the authorization code grant workflow.
A web application is a confidential client running on a web
server. Resource owners access the client via an HTML user
interface rendered in a user-agent on the device used by the
resource owner. The client credentials as well as any access
token issued to the client are stored on the web server and are
not exposed to or accessible by the resource owner.
The authorization code grant type is used to obtain both access
tokens and refresh tokens and is optimized for confidential clients.
As a redirection-based flow, the client must be capable of
interacting with the resource owner's user-agent (typically a web
browser) and capable of receiving incoming requests (via redirection)
from the authorization server.
�authorization_codeNc s t � j|fi |�� || _d S �N)�super�__init__�code)�self� client_idr
�kwargs�� __class__� �Q/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/clients/web_application.pyr '