관리-도구
편집 파일: legacy_application.cpython-39.opt-1.pyc
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 s. e Zd ZdZdZ� fdd�Zd 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__� �V/usr/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/clients/legacy_application.pyr &