|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/oauth2client/__pycache__/ |
U
O��gm# � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd lm
Z
d
ddgZd
ZdZdZdZdd� 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 tk
r" Y d S X | jdd�}|jdddd� |jdd dd
d� |jdd
dgtddd� |jdddddddgdd� |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�WARNING�CRITICALz Set the logging level of detail.)r �choicesr )�argparse�ImportError�ArgumentParser�add_argument�int)r �parser� r! �?/opt/cppython/lib/python3.8/site-packages/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"