From 50ef1ccd03203a141b1fac269cc68ff1abbab0e4 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 19 Jan 2021 15:06:01 +0000 Subject: [PATCH] Add missing idp_icon attributes to CasHandler and SamlHandler --- synapse/handlers/cas_handler.py | 4 ++++ synapse/handlers/saml_handler.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/synapse/handlers/cas_handler.py b/synapse/handlers/cas_handler.py index f3430c671399..0f342c607b27 100644 --- a/synapse/handlers/cas_handler.py +++ b/synapse/handlers/cas_handler.py @@ -80,6 +80,10 @@ def __init__(self, hs: "HomeServer"): # user-facing name of this auth provider self.idp_name = "CAS" + # we do not currently support icons for CAS auth, but this is required by + # the SsoIdentityProvider protocol type. + self.idp_icon = None + self._sso_handler = hs.get_sso_handler() self._sso_handler.register_identity_provider(self) diff --git a/synapse/handlers/saml_handler.py b/synapse/handlers/saml_handler.py index a8376543c9c1..38461cf79db8 100644 --- a/synapse/handlers/saml_handler.py +++ b/synapse/handlers/saml_handler.py @@ -78,6 +78,10 @@ def __init__(self, hs: "HomeServer"): # user-facing name of this auth provider self.idp_name = "SAML" + # we do not currently support icons for SAML auth, but this is required by + # the SsoIdentityProvider protocol type. + self.idp_icon = None + # a map from saml session id to Saml2SessionData object self._outstanding_requests_dict = {} # type: Dict[str, Saml2SessionData]