Skip to content

Commit

Permalink
fix: trust evaluation error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Aug 24, 2023
1 parent b42b5f8 commit 8a27537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyeudiw/satosa/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def _validate_trust(self, context: Context, jws: str) -> TrustEvaluationHelper:

try:
trust_eval.evaluation_method()
except Exception:
except Exception as e:
self._log(
context,
level='error',
Expand Down Expand Up @@ -673,10 +673,10 @@ def _request_endpoint_dpop(self, context, *args) -> Union[JsonResponse, None]:
f"[FOUND WIA] Headers: {_head} and Payload: {wia}"
)
)

try:
self._validate_trust(context, dpop_jws)
except Exception as e:
except Exception:
_msg = f"Trust Chain validation failed for dpop JWS {dpop_jws}"
return self.handle_error(
context=context,
Expand Down

0 comments on commit 8a27537

Please sign in to comment.