diff options
author | Jason Robinson <mail@jasonrobinson.me> | 2021-05-17 01:10:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 00:10:13 +0200 |
commit | 714a2ad7303f0d7b51b8b7f6c5f86f02a99c3524 (patch) | |
tree | d86c0a9ed9c3030ac771567cd10b7e8de73c2fca /matterbridge.toml.sample | |
parent | fa8b96dfa17caf9f67e496deb2d2363cffaad1eb (diff) | |
download | matterbridge-msglm-714a2ad7303f0d7b51b8b7f6c5f86f02a99c3524.tar.gz matterbridge-msglm-714a2ad7303f0d7b51b8b7f6c5f86f02a99c3524.tar.bz2 matterbridge-msglm-714a2ad7303f0d7b51b8b7f6c5f86f02a99c3524.zip |
Add MxId/Token login option for Matrix (#1438)
* Add possibility for using MxId/Token with Matrix
Makes it possible to configure a Matrix bot to use Matrix ID + Access token instead of username/password. This makes it possible to use the bot in environments where password login is disabled (for example SSO environments).
Matrix user ID's are commonly referred to as "MXID's". I thought about (ab)using "Login" here but it felt like a bad idea given it's used as "username" for the password login. None of the other configuration items felt fitting.
Closes #1429
* MxId -> MxID
* Add err != nil to matrix.NewClient
Diffstat (limited to 'matterbridge.toml.sample')
-rw-r--r-- | matterbridge.toml.sample | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 5c1698a1..2819b287 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1245,12 +1245,16 @@ ShowTopicChange=false #REQUIRED Server="https://matrix.org" -#login/pass of your bot. +#Authentication for your bot. +#You can use either login/password OR mxid/token. The latter will be preferred if found. #Use a dedicated user for this and not your own! #Messages sent from this user will not be relayed to avoid loops. #REQUIRED Login="yourlogin" Password="yourpass" +#OR +MxID="@yourlogin:domain.tld" +Token="tokenforthebotuser" #Whether to send the homeserver suffix. eg ":matrix.org" in @username:matrix.org #to other bridges, or only send "username".(true only sends username) |