Skip to content

Commit fcd61a2

Browse files
committed
Remove logging around state-cookie loading
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 333a745 commit fcd61a2

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/satosa/base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ def _load_state(self, context):
248248
self.config["STATE_ENCRYPTION_KEY"],
249249
)
250250
except SATOSAStateError as e:
251-
msg_tmpl = 'Failed to decrypt state {state} with {error}'
252-
msg = msg_tmpl.format(state=context.cookie, error=str(e))
253-
satosa_logging(logger, logging.WARNING, msg, None)
254251
state = State()
255252
finally:
256253
context.state = state

src/satosa/state.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,12 @@ def cookie_to_state(cookie_str, name, encryption_key):
7575
except KeyError as e:
7676
msg_tmpl = 'No cookie named {name} in {data}'
7777
msg = msg_tmpl.format(name=name, data=cookie_str)
78-
logger.exception(msg)
7978
raise SATOSAStateError(msg) from e
8079
except ValueError as e:
8180
msg_tmpl = 'Failed to process {name} from {data}'
8281
msg = msg_tmpl.format(name=name, data=cookie_str)
83-
logger.exception(msg)
8482
raise SATOSAStateError(msg) from e
8583
else:
86-
msg_tmpl = 'Loading state from cookie {data}'
87-
msg = msg_tmpl.format(data=cookie_str)
88-
satosa_logging(logger, logging.DEBUG, msg, state)
8984
return state
9085

9186

tests/satosa/backends/test_saml2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def test_authn_response_with_encrypted_assertion(self, sp_conf, context):
239239
)) as idp_metadata_file:
240240
sp_conf["metadata"]["inline"] = [idp_metadata_file.read()]
241241

242+
sp_conf["entityid"] = "https://federation-dev-1.scienceforum.sc/Saml2/proxy_saml2_backend.xml"
242243
samlbackend = SAMLBackend(
243244
Mock(),
244245
INTERNAL_ATTRIBUTES,

0 commit comments

Comments
 (0)