Skip to content

Commit

Permalink
additional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Jun 27, 2024
1 parent ce6e3bf commit 8277e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fabricauthenticator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.1'
__version__ = '1.3.2'
8 changes: 2 additions & 6 deletions fabricauthenticator/fabricauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8277e30

Please sign in to comment.