2015-05-02 01:21:25 +02:00
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<div id="banner"><a href="https://github.com/jcbrand/converse.js/blob/master/docs/source/features.rst">Edit me on GitHub</a></div>
|
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
.. _`features`:
|
|
|
|
|
2014-12-07 00:53:17 +01:00
|
|
|
========
|
|
|
|
Features
|
|
|
|
========
|
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
File sharing (`XEP-0363 HTTP File Upload <https://xmpp.org/extensions/xep-0363.html>`_)
|
|
|
|
=======================================================================================
|
2017-10-31 23:04:46 +01:00
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
Converse supports file sharing by first uploading the file to a file server and
|
|
|
|
then sending the file's URL to the recipient.
|
2017-10-31 23:04:46 +01:00
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
The file server that is used is configured by the XMPP server admin, and is not
|
|
|
|
something that Converse has any control over.
|
|
|
|
|
|
|
|
Often when people report file sharing not working, it's because the file server
|
|
|
|
is not configured to allow file uploads from other domains.
|
2017-10-31 23:04:46 +01:00
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
The file server needs to be configured for `Cross-Origin resource sharing <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_
|
|
|
|
(known by the acronym CORS). Specifically, it needs to add a
|
|
|
|
``Access-Control-Allow-Origin`` header which includes the domain hosting
|
|
|
|
Converse.
|
|
|
|
|
2019-02-25 14:18:05 +01:00
|
|
|
.. _`feature-omemo`:
|
2018-11-10 21:59:57 +01:00
|
|
|
|
2019-09-14 16:25:51 +02:00
|
|
|
End to end message encryption (`XEP-0384 OMEMO <https://xmpp.org/extensions/xep-0384.html>`_)
|
2018-11-10 21:59:57 +01:00
|
|
|
=============================================================================================
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2019-02-25 14:18:05 +01:00
|
|
|
.. note::
|
2022-04-06 10:07:27 +02:00
|
|
|
Converse versions older than 8.0.0 do NOT support encryption or decryption
|
2019-02-25 14:18:05 +01:00
|
|
|
of uploaded files. Files will be uploaded WITHOUT ENCRYPTION, even when
|
|
|
|
OMEMO is enabled.
|
|
|
|
|
2022-06-08 11:13:55 +02:00
|
|
|
.. note::
|
|
|
|
For end-to-end encryption via OMEMO, you'll need to load `libsignal-protocol.js
|
|
|
|
<https://github.com/signalapp/libsignal-protocol-javascript>`_ separately in
|
|
|
|
your page. Take a look at the section on :ref:`libsignal <dependency-libsignal>` and the
|
|
|
|
:ref:`security considerations around OMEMO <feature-omemo>`.
|
|
|
|
|
2018-10-18 08:08:44 +02:00
|
|
|
Converse supports OMEMO encryption based on the
|
|
|
|
`Signal Protocol <https://github.com/signalapp/libsignal-protocol-javascript>`_.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-10-18 08:08:44 +02:00
|
|
|
The Signal Protocol is session-oriented. Clients establish a session, which is
|
|
|
|
then used for all subsequent encrypt/decrypt operations. There is no need to
|
|
|
|
ever tear down a session once one has been established.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-10-18 08:08:44 +02:00
|
|
|
This means that a session needs to be stored permanently after logging out.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2022-04-06 10:07:27 +02:00
|
|
|
Converse stores this session information in the browser's `IndexedDB <https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API>`_
|
|
|
|
or `localStorage <https://developer.mozilla.org/en-US/docs/Web/API/Storage/LocalStorage>`_
|
|
|
|
database, depending on the value provided to :ref:`persistent-store`.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-10-18 08:08:44 +02:00
|
|
|
If you've checked the "This is not a trusted device" checkbox when logging in,
|
|
|
|
then `sessionStorage <https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage>`_
|
|
|
|
is used instead of localStorage and all data is cleared when you log out.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-12-20 21:48:41 +01:00
|
|
|
For this reason, OMEMO is disabled when you've indicated that you're using
|
2018-10-18 08:08:44 +02:00
|
|
|
an untrusted device. You would in any case not be able to decrypt previously
|
|
|
|
received OMEMO messages, due to the Signal Protocol's forward secrecy and the
|
|
|
|
fact that you don't have a pre-existing session.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-10-19 12:26:03 +02:00
|
|
|
Security considerations for browser-based crypto
|
|
|
|
------------------------------------------------
|
|
|
|
|
|
|
|
Crypto apps deployed via regular web hosting can be described as relying on
|
|
|
|
"host-based" security.
|
|
|
|
|
|
|
|
Host-based security services require you to trust the host every time you access
|
|
|
|
it, whereas with installable desktop software you trust the host when you
|
|
|
|
download/install the software (and whenever it gets updated).
|
|
|
|
|
|
|
|
The dynamic nature of "host-based" systems makes it impractical for security
|
|
|
|
researchers to do security audits because the hosted code can change at any
|
|
|
|
time.
|
|
|
|
|
|
|
|
In such a setup you need to fully trust the host that serves you the JavaScript code.
|
|
|
|
|
|
|
|
The host that serves the JavaScript code is not necessarily the same host that
|
|
|
|
stores and procesess your chat messages. So using OMEMO can still protect your
|
|
|
|
messages from snooping on the XMPP server where they're stored encrypted.
|
|
|
|
|
|
|
|
In other words, you do have to trust the webserver that hosts Converse for you,
|
|
|
|
but you don't necessarily have to trust the XMPP server (if it's on a different host),
|
|
|
|
because it never gets hold of your private key.
|
|
|
|
|
|
|
|
One way to improve this situation is to host Converse yourself, especially if
|
|
|
|
you host it locally on your own machine. If you're not able to do that, then
|
|
|
|
at least make sure you use a reputable host that serves files over HTTPS and
|
|
|
|
that set `CSP <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy>`_
|
|
|
|
headers.
|
|
|
|
|
|
|
|
Due to these reasons, it's NOT a good idea to use encrypted messaging with a
|
|
|
|
browser-based solution in life-threatening situations.
|
|
|
|
|
2022-04-06 10:07:27 +02:00
|
|
|
Security can be increased by using an installable app (like `Converse Desktop <https://github.com/conversejs/converse-desktop>`_).
|
2018-10-19 12:26:03 +02:00
|
|
|
|
|
|
|
For further reading on the challenges of web-based crypto, take a look at these
|
|
|
|
articles:
|
|
|
|
|
|
|
|
* `What's wrong with webcrypto? <https://tonyarcieri.com/whats-wrong-with-webcrypto>`_
|
|
|
|
* `Heartbleed and JavaScript crypto <https://tankredhase.com/2014/04/13/heartbleed-and-javascript-crypto/>`_
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-12-20 21:48:41 +01:00
|
|
|
OMEMO in Multi-user chats (MUC)
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
Converse supports OMEMO encryption in groupchats, but only if the groupchat is
|
|
|
|
set to `members only` and `non-anonymous`. This is the same criteria used by
|
|
|
|
the popular Android XMPP client `Conversations <https://conversations.im/>`_.
|
|
|
|
|
|
|
|
If the groupchat is configured properly, you'll see the lock icon in the
|
|
|
|
toolbar.
|
|
|
|
|
2018-11-10 21:59:57 +01:00
|
|
|
|
|
|
|
Open chats via URL
|
|
|
|
==================
|
|
|
|
|
|
|
|
From version 3.3.0, converse.js now has the ability to open chats (private or
|
|
|
|
groupchat) based on the URL fragment.
|
|
|
|
|
|
|
|
A room (aka groupchat) can be opened with a URL fragment such as `#converse/room?jid=room@domain`
|
|
|
|
and a private chat with a URL fragment such as
|
|
|
|
`#converse/chat?jid=user@domain`.
|
|
|
|
|
|
|
|
|
2016-03-01 10:43:44 +01:00
|
|
|
Notifications
|
|
|
|
=============
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-06-01 09:17:18 +02:00
|
|
|
From version 0.8.1 Converse can play a sound notification when you receive a
|
2014-12-07 00:53:17 +01:00
|
|
|
message.
|
|
|
|
|
2016-03-01 10:43:44 +01:00
|
|
|
For more info, refer to the :ref:`play-sounds` configuration setting.
|
|
|
|
|
|
|
|
It can also show `desktop notification messages <https://developer.mozilla.org/en-US/docs/Web/API/notification>`_
|
|
|
|
when the browser is not currently visible.
|
|
|
|
|
|
|
|
For more info, refer to the :ref:`show-desktop-notifications` configuration setting.
|
2014-12-07 00:53:17 +01:00
|
|
|
|
|
|
|
Multilingual Support
|
|
|
|
====================
|
|
|
|
|
2019-11-22 12:57:51 +01:00
|
|
|
Converse is translated into over 30 languages. Translations can be added or
|
|
|
|
updated on `Weblate <https://hosted.weblate.org/projects/conversejs/>`_.
|
|
|
|
|
|
|
|
Translations are supplied in JSON format and are loaded on demand. Converse will expect to find the
|
|
|
|
translations in the ``/dist/locales`` path of your site. This path can be
|
|
|
|
changed via the :ref:`assets_path` configuration setting.
|
|
|
|
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-02-09 11:55:53 +01:00
|
|
|
Moderating chatrooms
|
|
|
|
====================
|
2014-12-07 00:53:17 +01:00
|
|
|
|
2018-02-09 11:55:53 +01:00
|
|
|
Here are the different commands that may be used to moderate a chatroom:
|
2014-12-07 00:53:17 +01:00
|
|
|
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| Event Type | When is it triggered? | Example (substitue $nickname with an actual user's nickname) |
|
|
|
|
+============+==============================================================================================+===============================================================+
|
2018-02-09 11:55:53 +01:00
|
|
|
| **ban** | Ban a user from the chatroom. They will not be able to join again. | /ban $nickname |
|
2014-12-07 00:53:17 +01:00
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
2018-02-09 11:55:53 +01:00
|
|
|
| **clear** | Clear the messages shown in the chatroom. | /clear |
|
2014-12-07 00:53:17 +01:00
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
2015-11-05 12:30:31 +01:00
|
|
|
| **deop** | Make a moderator a normal occupant. | /deop $nickname [$reason] |
|
2014-12-07 00:53:17 +01:00
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **help** | Show the list of available commands. | /help |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **kick** | Kick a user out of a room. They will be able to join again. | /kick $nickname [$reason] |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **me** | Speak in the 3rd person. | /me $message |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **mute** | Remove a user's ability to post messages to the room. They will still be able to observe. | /mute $nickname [$reason] |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **nick** | Change your nickname. | /nick $nickname |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
2015-11-05 12:30:31 +01:00
|
|
|
| **op** | Make a normal occupant a moderator. | /op $nickname [$reason] |
|
2014-12-07 00:53:17 +01:00
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
2018-02-09 11:55:53 +01:00
|
|
|
| **topic** | Set the topic of the chatroom. | /topic ${topic text} |
|
2014-12-07 00:53:17 +01:00
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
|
|
|
| **voice** | Allow a muted user to post messages to the room. | /voice $nickname [$reason] |
|
|
|
|
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
|
2016-11-03 15:38:29 +01:00
|
|
|
|
|
|
|
Passwordless login with client certificates
|
|
|
|
===========================================
|
|
|
|
|
2018-06-01 09:17:18 +02:00
|
|
|
Converse supports the SASL-EXTERNAL authentication mechanism, which can be
|
2016-11-03 15:38:29 +01:00
|
|
|
used together with x509 client certificates to enable passwordless login or
|
|
|
|
even 2-factor authentication.
|
|
|
|
|
|
|
|
For more info, `read this blog post <https://opkode.com/blog/strophe_converse_sasl_external/>`_.
|