Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/oauthlib/oauth2/rfc6749/__pycache__/ |
Upload File : |
o ���aY+ � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZ ddl mZ G d d � d e�Z d d d�Zdd� Zd!dd�Zd"dd�Zd#dd�Zdd� Zdd� ZG dd� d�ZG dd� de�ZdS )$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 sr e Zd Zd� fdd� Zedd� �Zedd� �Zedd � �Zed d� �Zedd � �Z edd� �Z edd� �Z� ZS )�OAuth2TokenNc st t � �|� d | _d|v r|d rtt�|d ��| _|d ur4tt�|��| _| jd u r2| j| _d S d S | j| _d S )N�scope)�super�__init__� _new_scope�setr � scope_to_list� _old_scope)�self�params� old_scope�� __class__� �@/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/tokens.pyr s �zOAuth2Token.__init__c C s | j | jkS �N)r r �r r r r � scope_changed&