diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-03 11:25:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 16:25:44 +0000 |
commit | 0eccf531466d762ede0dd365284a8465bfb18d0f (patch) | |
tree | 79e13f435e43d2483acee651a2ecfa75748b06c1 /synapse/handlers/sso.py | |
parent | Fix RoomDirectoryFederationTests and make them actually run (#8998) (diff) | |
download | synapse-0eccf531466d762ede0dd365284a8465bfb18d0f.tar.xz |
Use the SSO handler helpers for CAS registration/login. (#8856)
Diffstat (limited to 'synapse/handlers/sso.py')
-rw-r--r-- | synapse/handlers/sso.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/sso.py b/synapse/handlers/sso.py index b0a8c8c7d2..33cd6bc178 100644 --- a/synapse/handlers/sso.py +++ b/synapse/handlers/sso.py @@ -173,7 +173,7 @@ class SsoHandler: request: SynapseRequest, client_redirect_url: str, sso_to_matrix_id_mapper: Callable[[int], Awaitable[UserAttributes]], - grandfather_existing_users: Optional[Callable[[], Awaitable[Optional[str]]]], + grandfather_existing_users: Callable[[], Awaitable[Optional[str]]], extra_login_attributes: Optional[JsonDict] = None, ) -> None: """ @@ -241,7 +241,7 @@ class SsoHandler: ) # Check for grandfathering of users. - if not user_id and grandfather_existing_users: + if not user_id: user_id = await grandfather_existing_users() if user_id: # Future logins should also match this user ID. |