Skip to content

Commit 283748a

Browse files
1 parent 4364a77 commit 283748a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

‎google/auth/_helpers.py‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@
3131
REFRESH_THRESHOLD = datetime.timedelta(minutes=3, seconds=45)
3232

3333
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1684): Audit and update the list below.
34-
_SENSITIVE_FIELDS = {"accessToken", "access_token", "id_token", "client_id", "refresh_token", "client_secret"}
34+
_SENSITIVE_FIELDS = {
35+
"accessToken",
36+
"access_token",
37+
"id_token",
38+
"client_id",
39+
"refresh_token",
40+
"client_secret",
41+
}
42+
3543

3644
def copy_docstring(source_class):
3745
"""Decorator that copies a method's docstring from another class.
@@ -308,7 +316,13 @@ def _hash_value(value, field_name: str) -> str:
308316
return f"hashed_{field_name}-{hex_digest}"
309317

310318

311-
def request_log(logger: logging.Logger, method: str, url: str, body: Optional[Any], headers: Optional[Dict[str, str]]) -> None:
319+
def request_log(
320+
logger: logging.Logger,
321+
method: str,
322+
url: str,
323+
body: Optional[Any],
324+
headers: Optional[Dict[str, str]],
325+
) -> None:
312326
"""
313327
Logs an HTTP request at the DEBUG level.
314328

0 commit comments

Comments
 (0)