From 35a3051190997f438e6f3c022efd3f90a4c7f09e Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Wed, 26 Jul 2023 15:03:03 +0100 Subject: [PATCH] fix: Don't print client_secret in oauth2 debug --- src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py b/src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py index 792f2d5e226..540ee16b48e 100644 --- a/src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py +++ b/src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py @@ -165,8 +165,7 @@ def __init__(self, **kwargs): self.metadata_fetch_last = time.time() - self.METADATA_REFRESH_RATE self.log.debug( f'"{self.name}" OAuth2 IdP initialization done:', - "\nclient_id: %s\nclient_secret: %s\nmetadata:\n%s" - % (self.client_id, self.client_secret, pprint.pformat(self.metadata)), + f"\nclient_id: {self.client_id}\nmetadata:\n{pprint.pformat(self.metadata)}", ) def _initialize(self):