Skip to content

Commit

Permalink
print auth URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jul 23, 2024
1 parent d7eb619 commit 11e2003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gmail-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_credentials():
flow.user_agent = 'prometheus-gmail-exporter'

logging.info("Running authentication flow, oauth port: %d", args.oauthBindPort)
logging.info("Please go to the following URL: %s", flow.authorization_url(prompt='select_account'))

credentials = flow.run_local_server(port=args.oauthBindPort, bind_addr = args.oauthBindAddr, host = args.oauthHost)
#credentials = flow.run_local_server()
Expand Down

0 comments on commit 11e2003

Please sign in to comment.