OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
gslib
/
vendored
/
oauth2client
/
oauth2client
/
contrib
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/11/2025 08:19:48 AM
rwxr-xr-x
📄
__init__.cpython-39.pyc
388 bytes
02/11/2025 08:19:48 AM
rw-r--r--
📄
_metadata.cpython-39.pyc
3.7 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
devshell.cpython-39.pyc
4.84 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
gce.cpython-39.pyc
5.29 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
multiprocess_file_storage.cpython-39.pyc
10.71 KB
02/11/2025 08:19:48 AM
rw-r--r--
Editing: devshell.cpython-39.pyc
Close
a ��a � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ dZG dd� de �Z G dd � d e �ZG d d� de �ZdZ G d d� de�Zdd� ZG dd� dej�ZdS )z;OAuth 2.0 utitilies for Google Developer Shell environment.� N)�_helpers)�clientZDEVSHELL_CLIENT_PORTc @ s e Zd ZdZdS )�ErrorzErrors for this module.N��__name__� __module__�__qualname__�__doc__� r r �H/opt/gsutil/gslib/vendored/oauth2client/oauth2client/contrib/devshell.pyr s r c @ s e Zd ZdZdS )�CommunicationErrorz9Errors for communication with the Developer Shell server.Nr r r r r r ! s r c @ s e Zd ZdZdS )�NoDevshellServerz6Error when no Developer Shell server can be contacted.Nr r r r r r % s r z[]c @ s e Zd ZdZdd� ZdS )�CredentialInfoResponsea� Credential information response from Developer Shell server. The credential information response from Developer Shell socket is a PBLite-formatted JSON array with fields encoded by their index in the array: * Index 0 - user email * Index 1 - default project ID. None if the project context is not known. * Index 2 - OAuth2 access token. None if there is no valid auth context. * Index 3 - Seconds until the access token expires. None if not present. c C s� t �|�}t|t�s$tdt|� ��t|�}|dkr<|d nd| _|dkrR|d nd| _|dkrh|d nd| _ |dkr~|d nd| _ dS )z4Initialize the response data from JSON PBLite array.zNot a list: r N� � � )�json�loads� isinstance�list� ValueError�str�len� user_email� project_id�access_token� expires_in)�selfZjson_stringZpblZpbl_lenr r r �__init__<