Skip to content

Commit

Permalink
Suppress opening browser for reg-creds in order to run in Docker cont…
Browse files Browse the repository at this point in the history
…ainer (#166)
  • Loading branch information
tsutaj authored Sep 12, 2024
1 parent 3e288d1 commit a2b93dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion statements_manager/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ def create_token(creds_path: str, token_path: Union[str, None] = None) -> Any:
token_obj.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file(creds_path, scopes)
token_obj = flow.run_local_server(port=0)
# TODO: specify port number by argument
token_obj = flow.run_local_server(
port=37123, open_browser=False, bind_addr="0.0.0.0"
)
return token_obj

0 comments on commit a2b93dd

Please sign in to comment.