From ac3c2873ba70f48e7719ab5a7e242894b90e8893 Mon Sep 17 00:00:00 2001 From: Mark Keller Date: Fri, 31 Jan 2025 15:16:02 -0800 Subject: [PATCH] do not log state --- src/snowflake/connector/auth/oauth_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snowflake/connector/auth/oauth_code.py b/src/snowflake/connector/auth/oauth_code.py index 49de0f2a6..058d53727 100644 --- a/src/snowflake/connector/auth/oauth_code.py +++ b/src/snowflake/connector/auth/oauth_code.py @@ -68,7 +68,7 @@ def __init__( self.redirect_uri = redirect_uri self.scope = scope self._state = secrets.token_urlsafe(43) - logger.debug("chose oauth state: %s", self._state) + logger.debug("chose oauth state: %s", "".join("*" for _ in self._state)) self._oauth_token = None self._protocol = "http"