| Server IP : 173.209.174.21 / Your IP : 216.73.216.79 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/oauthlib/oauth2/rfc6749/__pycache__/ |
Upload File : |
�
�bl+ � �� � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZ ddl
mZ G d � d
e� Z dd�Zd� Zdd
�Zdd�Zdd�Zd� Zd� Z G d� d� Z G d� de� Zy)z�
oauthlib.oauth2.rfc6749.tokens
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module contains methods for adding two types of access tokens to requests.
- Bearer https://tools.ietf.org/html/rfc6750
- MAC https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01
� N)�
b2a_base64)�urlparse)�common)�add_params_to_qs�add_params_to_uri� )�utilsc � � � e Zd Zd � fd� Zed� � Zed� � Zed� � Zed� � Zed� � Z ed� � Z
ed� � Z� xZS )
�OAuth2Tokenc �: �� t �| � |� d | _ d|v r+|d r&t t j
|d � � | _ |�Bt t j
|� � | _ | j �| j | _ y y | j | _ y )N�scope)�super�__init__�
_new_scope�setr �
scope_to_list�
_old_scope)�self�params� old_scope� __class__s ��@/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/tokens.pyr zOAuth2Token.__init__ s� �� �
���� �����f�����!�%�"5�"5�f�W�o�"F�G�D�O�� �!�%�"5�"5�i�"@�A�D�O����&� #'�/�/��� '�
#�o�o�D�O� c �4 � | j | j k7 S �N)r r �r s r �
scope_changedzOAuth2Token.scope_changed&