Skip to content

Commit 8a28017

Browse files
authored
Merge pull request #7134 from DIRACGridBot/cherry-pick-2-3999e1574-integration
[sweep:integration] Don't print client_secret in oauth2 debug
2 parents 4299513 + 74f7c87 commit 8a28017

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ def __init__(self, **kwargs):
165165
self.metadata_fetch_last = time.time() - self.METADATA_REFRESH_RATE
166166
self.log.debug(
167167
f'"{self.name}" OAuth2 IdP initialization done:',
168-
"\nclient_id: %s\nclient_secret: %s\nmetadata:\n%s"
169-
% (self.client_id, self.client_secret, pprint.pformat(self.metadata)),
168+
f"\nclient_id: {self.client_id}\nmetadata:\n{pprint.pformat(self.metadata)}",
170169
)
171170

172171
def _initialize(self):

0 commit comments

Comments
 (0)