diff options
author | David Baker <dbkr@users.noreply.github.com> | 2017-11-02 10:55:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 10:55:17 +0000 |
commit | b19d9e2174063906ac89895026e7ca13d3eb5a24 (patch) | |
tree | 9a69b3d44661eb718d6b680780f3683da3527120 /docs | |
parent | Merge pull request #2623 from matrix-org/rav/callbacks_for_auth_providers (diff) | |
parent | Notify auth providers on logout (diff) | |
download | synapse-b19d9e2174063906ac89895026e7ca13d3eb5a24.tar.xz |
Merge pull request #2624 from matrix-org/rav/password_provider_notify_logout
Notify auth providers on logout
Diffstat (limited to 'docs')
-rw-r--r-- | docs/password_auth_providers.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/password_auth_providers.rst b/docs/password_auth_providers.rst index 4ae4aeb53f..2842d187e5 100644 --- a/docs/password_auth_providers.rst +++ b/docs/password_auth_providers.rst @@ -87,3 +87,13 @@ Password auth provider classes may optionally provide the following methods. The method should return a Twisted ``Deferred`` object, which resolves to ``True`` if authentication is successful, and ``False`` if not. + +``someprovider.on_logged_out``\(*user_id*, *device_id*, *access_token*) + + This method, if implemented, is called when a user logs out. It is passed + the qualified user ID, the ID of the deactivated device (if any: access + tokens are occasionally created without an associated device ID), and the + (now deactivated) access token. + + It may return a Twisted ``Deferred`` object; the logout request will wait + for the deferred to complete but the result is ignored. |