Skip to content

Commit

Permalink
Update oauthlib, set port to 0 in oauth flow to use ephemeral ports. F…
Browse files Browse the repository at this point in the history
…ixes #86. (#115)
  • Loading branch information
sqrrrl authored and Eric Koleda committed Jun 24, 2019
1 parent dd211cd commit aacc006
Show file tree
Hide file tree
Showing 31 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion admin_sdk/directory/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion admin_sdk/reports/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion admin_sdk/reseller/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion apps_script/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion calendar/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion classroom/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion docs/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion drive/activity-v2/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion drive/activity/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion drive/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion gmail/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion people/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion sheets/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion slides/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion tasks/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0
2 changes: 1 addition & 1 deletion vault/quickstart/quickstart.py
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions 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
google-auth-oauthlib==0.4.0

0 comments on commit aacc006

Please sign in to comment.