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

Increase the default SAML session expirary time to 15 minutes. #7664

Merged
merged 4 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/7664.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Increase the default SAML session expirary time to 15 minutes.
2 changes: 1 addition & 1 deletion docs/sample_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ saml2_config:

# The lifetime of a SAML session. This defines how long a user has to
# complete the authentication process, if allow_unsolicited is unset.
# The default is 5 minutes.
# The default is 15 minutes.
#
#saml_session_lifetime: 5m

Expand Down
4 changes: 2 additions & 2 deletions synapse/config/saml2_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def read_config(self, config, **kwargs):

# session lifetime: in milliseconds
self.saml2_session_lifetime = self.parse_duration(
saml2_config.get("saml_session_lifetime", "5m")
saml2_config.get("saml_session_lifetime", "15m")
)

template_dir = saml2_config.get("template_dir")
Expand Down Expand Up @@ -286,7 +286,7 @@ def generate_config_section(self, config_dir_path, server_name, **kwargs):

# The lifetime of a SAML session. This defines how long a user has to
# complete the authentication process, if allow_unsolicited is unset.
# The default is 5 minutes.
# The default is 15 minutes.
#
#saml_session_lifetime: 5m

Expand Down