temp swap back to run_console

This commit is contained in:
88lex 2020-07-25 14:19:06 +08:00
parent 9c1119e982
commit bfbf42ab86
2 changed files with 3 additions and 2 deletions

View file

@ -144,6 +144,7 @@ class Auth:
creds.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file(credentials[0], scopes)
creds = flow.run_local_server()
# creds = flow.run_local_server()
creds = flow.run_console()
with open(token, "wb") as tkn:
pickle.dump(creds, tkn)

View file

@ -21,7 +21,7 @@ from lib.utils import *
class Commands:
"""safire creates projects, service accounts(SAs), json keys for SAs and to add SAs as group members.\n Type -h
"""safire creates projects, service accounts(SAs), json keys for SAs and adds SAs as group members.\n Type -h
or --help after any command for info. Usage: './safire list projects' or 'safire add members mygroup@domain.com'
Most commands accept a 'filter'to process subsets. If no filter all items are listed."""