diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-01 15:42:38 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-01 16:51:51 +0000 |
commit | bc8a5c033097f719d6b2971660ad833ab8cb3838 (patch) | |
tree | a04182e6c7ed25ce0f2362a6fd6e7427973fbd03 /docs | |
parent | Merge pull request #2620 from matrix-org/rav/auth_non_password (diff) | |
download | synapse-bc8a5c033097f719d6b2971660ad833ab8cb3838.tar.xz |
Notify auth providers on logout
Provide a hook by which auth providers can be notified of logouts.
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 2dbebcd72c..98019cea01 100644 --- a/docs/password_auth_providers.rst +++ b/docs/password_auth_providers.rst @@ -82,3 +82,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. |