summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 16:22:27 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 16:22:27 +0100
commit72b2cb5460b53e30899b460d74e28331a2190b79 (patch)
treea1e11b04466dbe8f906adbc436f954b01d253dd2 /synapse/handlers/auth.py
parentMerge commit '233c8b9fc' into anoa/dinsic_release_1_31_0 (diff)
parentMove `complete_sso_ui_auth` into SSOHandler (diff)
downloadsynapse-72b2cb5460b53e30899b460d74e28331a2190b79.tar.xz
Merge commit '420031906' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py

index 178d50df90..8b18038720 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py
@@ -263,10 +263,6 @@ class AuthHandler(BaseHandler): # authenticating for an operation to occur on their account. self._sso_auth_confirm_template = hs.config.sso_auth_confirm_template - # The following template is shown after a successful user interactive - # authentication session. It tells the user they can close the window. - self._sso_auth_success_template = hs.config.sso_auth_success_template - # The following template is shown during the SSO authentication process if # the account is deactivated. self._sso_account_deactivated_template = ( @@ -1384,27 +1380,6 @@ class AuthHandler(BaseHandler): description=session.description, redirect_url=redirect_url, ) - async def complete_sso_ui_auth( - self, registered_user_id: str, session_id: str, request: Request, - ): - """Having figured out a mxid for this user, complete the HTTP request - - Args: - registered_user_id: The registered user ID to complete SSO login for. - session_id: The ID of the user-interactive auth session. - request: The request to complete. - """ - # Mark the stage of the authentication as successful. - # Save the user who authenticated with SSO, this will be used to ensure - # that the account be modified is also the person who logged in. - await self.store.mark_ui_auth_stage_complete( - session_id, LoginType.SSO, registered_user_id - ) - - # Render the HTML and return. - html = self._sso_auth_success_template - respond_with_html(request, 200, html) - async def complete_sso_login( self, registered_user_id: str,