PHP WebShell
Текущая директория: /usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/clients/__pycache__
Просмотр файла: legacy_application.cpython-310.pyc
o
���a� � @ s0 d Z ddlmZ 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.
� )�prepare_token_request� )�Clientc s2 e Zd ZdZdZ� fdd�Z d
dd �Z� ZS )�LegacyApplicationClienta A public client using the resource owner password and username directly.
The resource owner password credentials grant type is suitable in
cases where the resource owner has a trust relationship with the
client, such as the device operating system or a highly privileged
application. The authorization server should take special care when
enabling this grant type, and only allow it when other flows are not
viable.
The grant type is suitable for clients capable of obtaining the
resource owner's credentials (username and password, typically using
an interactive form). It is also used to migrate existing clients
using direct authentication schemes such as HTTP Basic or Digest
authentication to OAuth by converting the stored credentials to an
access token.
The method through which the client obtains the resource owner
credentials is beyond the scope of this specification. The client
MUST discard the credentials once an access token has been obtained.
�passwordc s t � j|fi |�� d S )N)�super�__init__)�self� client_id�kwargs�� __class__� �T/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/clients/legacy_application.pyr &