Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add additional logging for SAML sessions. (#7971)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Jul 29, 2020
1 parent f23c773 commit 3a00bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/7971.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Log the SAML session ID during creation.
3 changes: 3 additions & 0 deletions synapse/handlers/saml_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def handle_redirect_request(
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,
Expand Down

0 comments on commit 3a00bd1

Please sign in to comment.