mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 06:24:56 -04:00
Use the SSO handler helpers for CAS registration/login. (#8856)
This commit is contained in:
parent
168ba00d01
commit
0eccf53146
4 changed files with 199 additions and 39 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue