diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-06-11 00:03:57 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-06-11 00:03:57 +0100 |
commit | 426049247b271543a3a01e934851aefa727ba204 (patch) | |
tree | 58ff195c6afc92fded65c89d48c888bc22ad3853 /synapse/rest/saml2 | |
parent | Merge remote-tracking branch 'origin/develop' into rav/saml2_client (diff) | |
download | synapse-426049247b271543a3a01e934851aefa727ba204.tar.xz |
Code cleanups and simplifications.
Also: share the saml client between redirect and response handlers.
Diffstat (limited to 'synapse/rest/saml2')
-rw-r--r-- | synapse/rest/saml2/response_resource.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/rest/saml2/response_resource.py b/synapse/rest/saml2/response_resource.py index 69fb77b322..36ca1333a8 100644 --- a/synapse/rest/saml2/response_resource.py +++ b/synapse/rest/saml2/response_resource.py @@ -16,7 +16,6 @@ import logging import saml2 -from saml2.client import Saml2Client from twisted.web.resource import Resource from twisted.web.server import NOT_DONE_YET @@ -36,8 +35,7 @@ class SAML2ResponseResource(Resource): def __init__(self, hs): Resource.__init__(self) - - self._saml_client = Saml2Client(hs.config.saml2_sp_config) + self._saml_client = hs.get_saml_client() self._sso_auth_handler = SSOAuthHandler(hs) def render_POST(self, request): |