Skip to content

Commit 4d3eec8

Browse files
committed
Update oauthlib, set port to 0 in oauth flow to use ephemeral ports. Fixes googleworkspace#86.
1 parent dd211cd commit 4d3eec8

File tree

31 files changed

+46
-46
lines changed

31 files changed

+46
-46
lines changed

admin_sdk/directory/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main():
4141
else:
4242
flow = InstalledAppFlow.from_client_secrets_file(
4343
'credentials.json', SCOPES)
44-
creds = flow.run_local_server()
44+
creds = flow.run_local_server(port=0)
4545
# Save the credentials for the next run
4646
with open('token.pickle', 'wb') as token:
4747
pickle.dump(creds, token)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-api-python-client==1.7.8
1+
google-api-python-client==1.7.9
22
google-auth-httplib2==0.0.3
3-
google-auth-oauthlib==0.2.0
3+
google-auth-oauthlib==0.4.0

admin_sdk/reports/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main():
4141
else:
4242
flow = InstalledAppFlow.from_client_secrets_file(
4343
'credentials.json', SCOPES)
44-
creds = flow.run_local_server()
44+
creds = flow.run_local_server(port=0)
4545
# Save the credentials for the next run
4646
with open('token.pickle', 'wb') as token:
4747
pickle.dump(creds, token)

admin_sdk/reports/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-api-python-client==1.7.8
1+
google-api-python-client==1.7.9
22
google-auth-httplib2==0.0.3
3-
google-auth-oauthlib==0.2.0
3+
google-auth-oauthlib==0.4.0

admin_sdk/reseller/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main():
4141
else:
4242
flow = InstalledAppFlow.from_client_secrets_file(
4343
'credentials.json', SCOPES)
44-
creds = flow.run_local_server()
44+
creds = flow.run_local_server(port=0)
4545
# Save the credentials for the next run
4646
with open('token.pickle', 'wb') as token:
4747
pickle.dump(creds, token)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-api-python-client==1.7.8
1+
google-api-python-client==1.7.9
22
google-auth-httplib2==0.0.3
3-
google-auth-oauthlib==0.2.0
3+
google-auth-oauthlib==0.4.0

apps_script/quickstart/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main():
5959
else:
6060
flow = InstalledAppFlow.from_client_secrets_file(
6161
'credentials.json', SCOPES)
62-
creds = flow.run_local_server()
62+
creds = flow.run_local_server(port=0)
6363
# Save the credentials for the next run
6464
with open('token.pickle', 'wb') as token:
6565
pickle.dump(creds, token)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-api-python-client==1.7.8
1+
google-api-python-client==1.7.9
22
google-auth-httplib2==0.0.3
3-
google-auth-oauthlib==0.2.0
3+
google-auth-oauthlib==0.4.0

calendar/quickstart/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def main():
4242
else:
4343
flow = InstalledAppFlow.from_client_secrets_file(
4444
'credentials.json', SCOPES)
45-
creds = flow.run_local_server()
45+
creds = flow.run_local_server(port=0)
4646
# Save the credentials for the next run
4747
with open('token.pickle', 'wb') as token:
4848
pickle.dump(creds, token)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-api-python-client==1.7.8
1+
google-api-python-client==1.7.9
22
google-auth-httplib2==0.0.3
3-
google-auth-oauthlib==0.2.0
3+
google-auth-oauthlib==0.4.0

0 commit comments

Comments
 (0)