%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/__pycache__/tokens.cpython-312.pyc |
� �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&