Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7131 from sfayer/hide_secrets
Browse files Browse the repository at this point in the history
[8.0] Don't print client_secret in oauth2 debug
  • Loading branch information
chrisburr authored Jul 27, 2023
2 parents 8a0fe38 + 35a3051 commit 3999e15
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 3999e15

Please sign in to comment.