|
17 | 17 | from .plugin_loader import load_request_microservices, load_response_microservices
|
18 | 18 | from .routing import ModuleRouter, SATOSANoBoundEndpointError
|
19 | 19 | from .state import cookie_to_state, SATOSAStateError, State, state_to_cookie
|
| 20 | +from saml2.s_utils import UnknownSystemEntity |
20 | 21 |
|
21 | 22 |
|
22 | 23 | logger = logging.getLogger(__name__)
|
@@ -131,7 +132,7 @@ def _auth_resp_finish(self, context, internal_response):
|
131 | 132 | if user_id_to_attr:
|
132 | 133 | internal_response.attributes[user_id_to_attr] = [internal_response.user_id]
|
133 | 134 |
|
134 |
| - # Hash all attributes specified in INTERNAL_ATTRIBUTES["hash] |
| 135 | + # Hash all attributes specified in INTERNAL_ATTRIBUTES["hash"] |
135 | 136 | hash_attributes = self.config["INTERNAL_ATTRIBUTES"].get("hash", [])
|
136 | 137 | internal_attributes = internal_response.attributes
|
137 | 138 | for attribute in hash_attributes:
|
@@ -259,9 +260,14 @@ def run(self, context):
|
259 | 260 | except SATOSANoBoundEndpointError:
|
260 | 261 | raise
|
261 | 262 | except SATOSAError:
|
262 |
| - satosa_logging(logger, logging.ERROR, "Uncaught SATOSA error", context.state, |
| 263 | + satosa_logging(logger, logging.ERROR, "Uncaught SATOSA error ", context.state, |
263 | 264 | exc_info=True)
|
264 | 265 | raise
|
| 266 | + except UnknownSystemEntity as err: |
| 267 | + satosa_logging(logger, logging.ERROR, |
| 268 | + "configuration error: unknown system entity " + str(err), |
| 269 | + context.state, exc_info=False) |
| 270 | + raise |
265 | 271 | except Exception as err:
|
266 | 272 | satosa_logging(logger, logging.ERROR, "Uncaught exception", context.state,
|
267 | 273 | exc_info=True)
|
|
0 commit comments