summary refs log tree commit diff
path: root/synapse/module_api/__init__.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:37:01 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 18:37:01 +0100
commit9273535ade36fb6580a0ff27a4f836ea8ca9a52e (patch)
tree01dac05456dc5e8a321142d4235c9406d498a6f9 /synapse/module_api/__init__.py
parentMerge commit '9c715a5f1' into anoa/dinsic_release_1_31_0 (diff)
parentMerge branch 'social_login' into develop (diff)
downloadsynapse-9273535ade36fb6580a0ff27a4f836ea8ca9a52e.tar.xz
Merge commit '18ab35284' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/module_api/__init__.py')
-rw-r--r--synapse/module_api/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py

index 72ab5750cc..401d577293 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py
@@ -279,7 +279,11 @@ class ModuleApi: ) async def complete_sso_login_async( - self, registered_user_id: str, request: SynapseRequest, client_redirect_url: str + self, + registered_user_id: str, + request: SynapseRequest, + client_redirect_url: str, + new_user: bool = False, ): """Complete a SSO login by redirecting the user to a page to confirm whether they want their access token sent to `client_redirect_url`, or redirect them to that @@ -291,9 +295,11 @@ class ModuleApi: request: The request to respond to. client_redirect_url: The URL to which to offer to redirect the user (or to redirect them directly if whitelisted). + new_user: set to true to use wording for the consent appropriate to a user + who has just registered. """ await self._auth_handler.complete_sso_login( - registered_user_id, request, client_redirect_url, + registered_user_id, request, client_redirect_url, new_user=new_user ) @defer.inlineCallbacks