Skip to content

Commit

Permalink
sweep: #7131 Don't print client_secret in oauth2 debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sfayer authored and web-flow committed Jul 27, 2023
1 parent 4299513 commit 74f7c87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DIRAC/Resources/IdProvider/OAuth2IdProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 74f7c87

Please sign in to comment.