diff --git a/changelog.d/7971.misc b/changelog.d/7971.misc new file mode 100644 index 0000000000000000000000000000000000000000..87a4eb1f4d66d738c1319eb90beeb967a6f35d50 --- /dev/null +++ b/changelog.d/7971.misc @@ -0,0 +1 @@ +Log the SAML session ID during creation. diff --git a/synapse/handlers/saml_handler.py b/synapse/handlers/saml_handler.py index abecaa831356db8a8beb27e7e7c7a2f52c6a3b6c..2d506dc1f2de7162daac1f4c90712462aa41902d 100644 --- a/synapse/handlers/saml_handler.py +++ b/synapse/handlers/saml_handler.py @@ -96,6 +96,9 @@ class SamlHandler: relay_state=client_redirect_url ) + # Since SAML sessions timeout it is useful to log when they were created. + logger.info("Initiating a new SAML session: %s" % (reqid,)) + now = self._clock.time_msec() self._outstanding_requests_dict[reqid] = Saml2SessionData( creation_time=now, ui_auth_session_id=ui_auth_session_id,