From 4d3eec8abd7ca77adc701cd470697ee05d109256 Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Mon, 24 Jun 2019 13:57:55 -0600 Subject: [PATCH] Update oauthlib, set port to 0 in oauth flow to use ephemeral ports. Fixes #86. --- admin_sdk/directory/quickstart.py | 2 +- admin_sdk/directory/requirements.txt | 4 ++-- admin_sdk/reports/quickstart.py | 2 +- admin_sdk/reports/requirements.txt | 4 ++-- admin_sdk/reseller/quickstart.py | 2 +- admin_sdk/reseller/requirements.txt | 4 ++-- apps_script/quickstart/quickstart.py | 2 +- apps_script/quickstart/requirements.txt | 4 ++-- calendar/quickstart/quickstart.py | 2 +- calendar/quickstart/requirements.txt | 4 ++-- classroom/quickstart/quickstart.py | 2 +- classroom/quickstart/requirements.txt | 4 ++-- docs/quickstart/quickstart.py | 2 +- docs/quickstart/requirements.txt | 4 ++-- drive/activity-v2/quickstart.py | 2 +- drive/activity-v2/requirements.txt | 4 ++-- drive/activity/quickstart.py | 2 +- drive/activity/requirements.txt | 4 ++-- drive/quickstart/quickstart.py | 2 +- drive/quickstart/requirements.txt | 4 ++-- gmail/quickstart/quickstart.py | 2 +- people/quickstart/quickstart.py | 2 +- people/quickstart/requirements.txt | 4 ++-- sheets/quickstart/quickstart.py | 2 +- sheets/quickstart/requirements.txt | 4 ++-- slides/quickstart/quickstart.py | 2 +- slides/quickstart/requirements.txt | 4 ++-- tasks/quickstart/quickstart.py | 2 +- tasks/quickstart/requirements.txt | 4 ++-- vault/quickstart/quickstart.py | 2 +- vault/quickstart/requirements.txt | 4 ++-- 31 files changed, 46 insertions(+), 46 deletions(-) diff --git a/admin_sdk/directory/quickstart.py b/admin_sdk/directory/quickstart.py index b8811796..5a9b0680 100644 --- a/admin_sdk/directory/quickstart.py +++ b/admin_sdk/directory/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/admin_sdk/directory/requirements.txt b/admin_sdk/directory/requirements.txt index b885bd49..b50bc3c8 100644 --- a/admin_sdk/directory/requirements.txt +++ b/admin_sdk/directory/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/admin_sdk/reports/quickstart.py b/admin_sdk/reports/quickstart.py index 42b43ed6..29bc20dd 100644 --- a/admin_sdk/reports/quickstart.py +++ b/admin_sdk/reports/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/admin_sdk/reports/requirements.txt b/admin_sdk/reports/requirements.txt index b885bd49..b50bc3c8 100644 --- a/admin_sdk/reports/requirements.txt +++ b/admin_sdk/reports/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/admin_sdk/reseller/quickstart.py b/admin_sdk/reseller/quickstart.py index 3943ffdb..6fb733d0 100644 --- a/admin_sdk/reseller/quickstart.py +++ b/admin_sdk/reseller/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/admin_sdk/reseller/requirements.txt b/admin_sdk/reseller/requirements.txt index b885bd49..b50bc3c8 100644 --- a/admin_sdk/reseller/requirements.txt +++ b/admin_sdk/reseller/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/apps_script/quickstart/quickstart.py b/apps_script/quickstart/quickstart.py index ac2208bd..1d3005a0 100644 --- a/apps_script/quickstart/quickstart.py +++ b/apps_script/quickstart/quickstart.py @@ -59,7 +59,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/apps_script/quickstart/requirements.txt b/apps_script/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/apps_script/quickstart/requirements.txt +++ b/apps_script/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/calendar/quickstart/quickstart.py b/calendar/quickstart/quickstart.py index 62f88da6..bd80cb09 100644 --- a/calendar/quickstart/quickstart.py +++ b/calendar/quickstart/quickstart.py @@ -42,7 +42,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/calendar/quickstart/requirements.txt b/calendar/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/calendar/quickstart/requirements.txt +++ b/calendar/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/classroom/quickstart/quickstart.py b/classroom/quickstart/quickstart.py index 0a2ab459..3ec54884 100644 --- a/classroom/quickstart/quickstart.py +++ b/classroom/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/classroom/quickstart/requirements.txt b/classroom/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/classroom/quickstart/requirements.txt +++ b/classroom/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/docs/quickstart/quickstart.py b/docs/quickstart/quickstart.py index e118af56..7c08fb0a 100644 --- a/docs/quickstart/quickstart.py +++ b/docs/quickstart/quickstart.py @@ -44,7 +44,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/docs/quickstart/requirements.txt b/docs/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/docs/quickstart/requirements.txt +++ b/docs/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/drive/activity-v2/quickstart.py b/drive/activity-v2/quickstart.py index 7531a99c..08cc39e7 100644 --- a/drive/activity-v2/quickstart.py +++ b/drive/activity-v2/quickstart.py @@ -43,7 +43,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/drive/activity-v2/requirements.txt b/drive/activity-v2/requirements.txt index b885bd49..b50bc3c8 100644 --- a/drive/activity-v2/requirements.txt +++ b/drive/activity-v2/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/drive/activity/quickstart.py b/drive/activity/quickstart.py index 1dab57af..e1a2c3b1 100644 --- a/drive/activity/quickstart.py +++ b/drive/activity/quickstart.py @@ -42,7 +42,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/drive/activity/requirements.txt b/drive/activity/requirements.txt index b885bd49..b50bc3c8 100644 --- a/drive/activity/requirements.txt +++ b/drive/activity/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/drive/quickstart/quickstart.py b/drive/quickstart/quickstart.py index 4fa926ca..dd0767c9 100644 --- a/drive/quickstart/quickstart.py +++ b/drive/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/drive/quickstart/requirements.txt b/drive/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/drive/quickstart/requirements.txt +++ b/drive/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/gmail/quickstart/quickstart.py b/gmail/quickstart/quickstart.py index 1ed68bc8..92986897 100644 --- a/gmail/quickstart/quickstart.py +++ b/gmail/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/people/quickstart/quickstart.py b/people/quickstart/quickstart.py index 0f384c44..e43ec320 100644 --- a/people/quickstart/quickstart.py +++ b/people/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/people/quickstart/requirements.txt b/people/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/people/quickstart/requirements.txt +++ b/people/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/sheets/quickstart/quickstart.py b/sheets/quickstart/quickstart.py index 8d27a713..c782e563 100644 --- a/sheets/quickstart/quickstart.py +++ b/sheets/quickstart/quickstart.py @@ -45,7 +45,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/sheets/quickstart/requirements.txt b/sheets/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/sheets/quickstart/requirements.txt +++ b/sheets/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/slides/quickstart/quickstart.py b/slides/quickstart/quickstart.py index 29a99d82..fbb4b5a8 100644 --- a/slides/quickstart/quickstart.py +++ b/slides/quickstart/quickstart.py @@ -44,7 +44,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/slides/quickstart/requirements.txt b/slides/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/slides/quickstart/requirements.txt +++ b/slides/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/tasks/quickstart/quickstart.py b/tasks/quickstart/quickstart.py index e326ec5d..564acf6b 100644 --- a/tasks/quickstart/quickstart.py +++ b/tasks/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/tasks/quickstart/requirements.txt b/tasks/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/tasks/quickstart/requirements.txt +++ b/tasks/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file diff --git a/vault/quickstart/quickstart.py b/vault/quickstart/quickstart.py index 79a7822f..e586626c 100644 --- a/vault/quickstart/quickstart.py +++ b/vault/quickstart/quickstart.py @@ -41,7 +41,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server() + creds = flow.run_local_server(port=0) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token) diff --git a/vault/quickstart/requirements.txt b/vault/quickstart/requirements.txt index b885bd49..b50bc3c8 100644 --- a/vault/quickstart/requirements.txt +++ b/vault/quickstart/requirements.txt @@ -1,3 +1,3 @@ -google-api-python-client==1.7.8 +google-api-python-client==1.7.9 google-auth-httplib2==0.0.3 -google-auth-oauthlib==0.2.0 \ No newline at end of file +google-auth-oauthlib==0.4.0 \ No newline at end of file