From 8277e3073f865548ddecb755c69fa61b49f740e5 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Thu, 27 Jun 2024 15:03:36 -0400 Subject: [PATCH] additional logs --- fabricauthenticator/__init__.py | 2 +- fabricauthenticator/fabricauthenticator.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fabricauthenticator/__init__.py b/fabricauthenticator/__init__.py index 72837bd..e398332 100644 --- a/fabricauthenticator/__init__.py +++ b/fabricauthenticator/__init__.py @@ -1 +1 @@ -__version__ = '1.3.1' +__version__ = '1.3.2' diff --git a/fabricauthenticator/fabricauthenticator.py b/fabricauthenticator/fabricauthenticator.py index 27fa07e..81ab9fc 100644 --- a/fabricauthenticator/fabricauthenticator.py +++ b/fabricauthenticator/fabricauthenticator.py @@ -202,15 +202,11 @@ def check_username_claim(self, claimlist, resp_json): if not username: if len(claimlist) < 2: self.log.error( - "Username claim %s not found in response: %s", - self.username_claim, - sorted(resp_json.keys()), + f"Sub: {sub} Username claim: '{self.username_claim}' not found in response: {resp_json} claimlist: {claimlist}" ) else: self.log.error( - "No username claim from %r in response: %s", - claimlist, - sorted(resp_json.keys()), + f"Sub: {sub} No username claim: '{self.username_claim}' found in response: {resp_json} claimlist: {claimlist}" ) raise web.HTTPError(500, "Failed to get username from CILogon") return username \ No newline at end of file