OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
gslib
/
vendored
/
oauth2client
/
oauth2client
/
__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
585 bytes
02/11/2025 08:19:48 AM
rw-r--r--
📄
_helpers.cpython-39.pyc
9.94 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
_openssl_crypt.cpython-39.pyc
4.16 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
_pkce.cpython-39.pyc
1.68 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
_pure_python_crypt.cpython-39.pyc
5.97 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
_pycrypto_crypt.cpython-39.pyc
3.91 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
client.cpython-39.pyc
66.44 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
clientsecrets.cpython-39.pyc
4.07 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
crypt.cpython-39.pyc
6.15 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
service_account.cpython-39.pyc
21.45 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
tools.cpython-39.pyc
7.86 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
transport.cpython-39.pyc
7.8 KB
02/11/2025 08:19:48 AM
rw-r--r--
Editing: tools.cpython-39.pyc
Close
a ��am# � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lm Z g d �ZdZdZd ZdZdd� Ze� ZG dd� dej�ZG dd� dej�Ze�d�ddd��Zdd� ZdS )z�Command-line tools for authenticating via OAuth 2.0 Do the OAuth 2.0 Web Server dance for a command line application. Stores the generated credentials in a common file that is used by other example apps in the same directory. � )�print_functionN)�BaseHTTPServer)�http_client)�input)�urllib)�_helpers)�client)� argparser�run_flow�message_if_missingz�WARNING: Please configure OAuth 2.0 To make this sample run you will need to populate the client_secrets.json file found at: {file_path} with information from the APIs Console <https://code.google.com/apis/console>. a Failed to start a local webserver listening on either port 8080 or port 8090. Please check your firewall settings and locally running programs that may be blocking or using those ports. Falling back to --noauth_local_webserver and continuing with authorization. z� Your browser has been opened to visit: {address} If your browser is on a different machine then exit and re-run this application with the command-line parameter --noauth_local_webserver z: Go to the following link in your browser: {address} c C s� zdd l } W n ty Y d S 0 | jdd�}|jdddd� |jdd dd d� |jdd dgtddd� |jddg d�dd� |S )Nr F)�add_helpz--auth_host_name� localhostz)Hostname when running a local web server.)�default�helpz--noauth_local_webserver� store_truezDo not run a local web server.)�actionr r z--auth_host_porti� i� �*z!Port web server should listen on.)r �type�nargsr z--logging_level�ERROR)�DEBUG�INFO�WARNINGr �CRITICALz Set the logging level of detail.)r �choicesr )�argparse�ImportError�ArgumentParser�add_argument�int)r �parser� r! �=/opt/gsutil/gslib/vendored/oauth2client/oauth2client/tools.py�_CreateArgumentParserM s( ����r# c @ s e Zd ZdZi ZdS )�ClientRedirectServerz�A server to handle OAuth 2.0 redirects back to localhost. Waits for a single request and parses the query parameters into query_params and then stops serving. N)�__name__� __module__�__qualname__�__doc__�query_paramsr! r! r! r"