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

Commit

Permalink
Revert changes to using the BaseHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Dec 4, 2020
1 parent 4afbe94 commit 834fd59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/handlers/cas_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from twisted.web.client import PartialDownloadError

from synapse.api.errors import Codes, LoginError
from synapse.handlers._base import BaseHandler
from synapse.handlers.sso import MappingException, UserAttributes
from synapse.http.site import SynapseRequest
from synapse.types import UserID, map_username_to_mxid_localpart
Expand All @@ -31,7 +30,7 @@
logger = logging.getLogger(__name__)


class CasHandler(BaseHandler):
class CasHandler:
"""
Utility class for to handle the response from a CAS SSO service.
Expand All @@ -40,7 +39,8 @@ class CasHandler(BaseHandler):
"""

def __init__(self, hs: "HomeServer"):
super().__init__(hs)
self.hs = hs
self._hostname = hs.hostname
self._auth_handler = hs.get_auth_handler()
self._registration_handler = hs.get_registration_handler()

Expand Down Expand Up @@ -275,7 +275,7 @@ async def grandfather_existing_users() -> Optional[str]:
# Since CAS did not used to support storing data into the user_external_ids
# tables, we need to attempt to map to existing users.
user_id = UserID(
map_username_to_mxid_localpart(remote_user_id), self.server_name
map_username_to_mxid_localpart(remote_user_id), self._hostname
).to_string()

logger.debug(
Expand Down

0 comments on commit 834fd59

Please sign in to comment.