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

Commit

Permalink
Fix missing config breaking tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 19, 2020
1 parent 7060604 commit 2769496
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions synapse/rest/client/v2_alpha/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ def __init__(self, hs):

# SSO configuration.
self._saml_enabled = hs.config.saml2_enabled
self._saml_handler = hs.get_saml_handler()
if self._saml_enabled:
self._saml_handler = hs.get_saml_handler()
self._cas_enabled = hs.config.cas_enabled
self._cas_server_url = hs.config.cas_server_url
self._cas_service_url = hs.config.cas_service_url
if self._cas_enabled:
self._cas_server_url = hs.config.cas_server_url
self._cas_service_url = hs.config.cas_service_url

def on_GET(self, request, stagetype):
session = parse_string(request, "session")
Expand Down

0 comments on commit 2769496

Please sign in to comment.