From 810008e9cdc65c5376e86145bf76c82ae4e83cea Mon Sep 17 00:00:00 2001 From: Matt Black Date: Sun, 7 Jul 2024 16:10:05 +1000 Subject: [PATCH] feat: Log the flow.run_local_server redirect URL --- google_auth_oauthlib/flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google_auth_oauthlib/flow.py b/google_auth_oauthlib/flow.py index e564ca4..652c04c 100644 --- a/google_auth_oauthlib/flow.py +++ b/google_auth_oauthlib/flow.py @@ -69,6 +69,7 @@ _LOGGER = logging.getLogger(__name__) +_LOGGER.setLevel(logging.INFO) class Flow(object): @@ -447,6 +448,7 @@ def run_local_server( webbrowser.get(browser).open(auth_url, new=1, autoraise=True) if authorization_prompt_message: + _LOGGER.info(authorization_prompt_message.format(url=auth_url)) print(authorization_prompt_message.format(url=auth_url)) local_server.timeout = timeout_seconds