Package oauth2client :: Module tools :: Class ClientRedirectHandler
[hide private]
[frames] | no frames]

Class ClientRedirectHandler

source code


A handler for OAuth 2.0 redirects back to localhost.

Waits for a single request and parses the query parameters
into the servers query_params and then stops serving.

Instance Methods [hide private]
 
do_GET(s)
Handle a GET request.
source code
 
log_message(self, format, *args)
Do not log messages to stdout while running as command line program.
source code

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: address_string, date_time_string, end_headers, handle, handle_one_request, log_date_time_string, log_error, log_request, parse_request, send_error, send_header, send_response, version_string

Inherited from SocketServer.StreamRequestHandler: finish, setup

Inherited from SocketServer.BaseRequestHandler: __init__

Class Variables [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass, default_request_version, error_content_type, error_message_format, monthname, protocol_version, responses, server_version, sys_version, weekdayname

Inherited from SocketServer.StreamRequestHandler: disable_nagle_algorithm, rbufsize, timeout, wbufsize

Method Details [hide private]

do_GET(s)

source code 
Handle a GET request.

Parses the query parameters and prints a message
if the flow has completed. Note that we can't detect
if an error occurred.

log_message(self, format, *args)

source code 
Do not log messages to stdout while running as command line program.

Overrides: BaseHTTPServer.BaseHTTPRequestHandler.log_message