diff options
author | babolivier <babolivier@users.noreply.github.com> | 2022-03-31 16:27:58 +0000 |
---|---|---|
committer | babolivier <babolivier@users.noreply.github.com> | 2022-03-31 16:27:58 +0000 |
commit | ea77180d99284a0dbc113cef48eea7d5a513a17a (patch) | |
tree | 82b18051aba3e2c0da291349c86b886581877dcc /develop/modules | |
parent | deploy: 15cdcf8f302fd9c7aeda15ba0d2c6dbe46291216 (diff) | |
download | synapse-ea77180d99284a0dbc113cef48eea7d5a513a17a.tar.xz |
deploy: 5e88143dff7aa6f8682bd6182e946b3470d1728e
Diffstat (limited to 'develop/modules')
-rw-r--r-- | develop/modules/third_party_rules_callbacks.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/develop/modules/third_party_rules_callbacks.html b/develop/modules/third_party_rules_callbacks.html index 54ce7ea041..ac8f95a4dd 100644 --- a/develop/modules/third_party_rules_callbacks.html +++ b/develop/modules/third_party_rules_callbacks.html @@ -361,6 +361,17 @@ a server admin (and <code>False</code> otherwise). This latter <code>by_admin</c if the user is being reactivated, as this operation can only be performed through the admin API.</p> <p>If multiple modules implement this callback, Synapse runs them all in order.</p> +<h3 id="on_threepid_bind"><a class="header" href="#on_threepid_bind"><code>on_threepid_bind</code></a></h3> +<p><em>First introduced in Synapse v1.56.0</em></p> +<pre><code class="language-python">async def on_threepid_bind(user_id: str, medium: str, address: str) -> None: +</code></pre> +<p>Called after creating an association between a local user and a third-party identifier +(email address, phone number). The module is given the Matrix ID of the user the +association is for, as well as the medium (<code>email</code> or <code>msisdn</code>) and address of the +third-party identifier.</p> +<p>Note that this callback is <em>not</em> called after a successful association on an <em>identity +server</em>.</p> +<p>If multiple modules implement this callback, Synapse runs them all in order.</p> <h2 id="example"><a class="header" href="#example">Example</a></h2> <p>The example below is a module that implements the third-party rules callback <code>check_event_allowed</code> to censor incoming messages as dictated by a third-party service.</p> |