From e51f4ccc901847a4c3cc0bf9a3f27db675677d83 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 29 Sep 2023 18:09:36 +0300 Subject: [PATCH] Switch most bridges to as_token double puppeting --- bridgeconfig/discord.tpl.yaml | 2 +- bridgeconfig/facebook.tpl.yaml | 2 +- bridgeconfig/gmessages.tpl.yaml | 2 +- bridgeconfig/googlechat.tpl.yaml | 2 +- bridgeconfig/instagram.tpl.yaml | 2 +- bridgeconfig/signal.tpl.yaml | 2 +- bridgeconfig/telegram.tpl.yaml | 2 +- bridgeconfig/twitter.tpl.yaml | 2 +- bridgeconfig/whatsapp.tpl.yaml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bridgeconfig/discord.tpl.yaml b/bridgeconfig/discord.tpl.yaml index 07072f6..635543b 100644 --- a/bridgeconfig/discord.tpl.yaml +++ b/bridgeconfig/discord.tpl.yaml @@ -207,7 +207,7 @@ bridge: # instead of users having to find an access token and run `login-matrix` # manually. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # The prefix for commands. Only required in non-management rooms. command_prefix: '!discord' diff --git a/bridgeconfig/facebook.tpl.yaml b/bridgeconfig/facebook.tpl.yaml index 12e1cf4..7036756 100644 --- a/bridgeconfig/facebook.tpl.yaml +++ b/bridgeconfig/facebook.tpl.yaml @@ -149,7 +149,7 @@ bridge: # If using this for other servers than the bridge's server, # you must also set the URL in the double_puppet_server_map. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Should presence from Facebook be bridged? This doesn't use the same API as the Android app, # so it might be more suspicious to Facebook. presence_from_facebook: false diff --git a/bridgeconfig/gmessages.tpl.yaml b/bridgeconfig/gmessages.tpl.yaml index db8a3f8..3938c48 100644 --- a/bridgeconfig/gmessages.tpl.yaml +++ b/bridgeconfig/gmessages.tpl.yaml @@ -148,7 +148,7 @@ bridge: # instead of users having to find an access token and run `login-matrix` # manually. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Whether to explicitly set the avatar and room name for private chat portal rooms. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms. diff --git a/bridgeconfig/googlechat.tpl.yaml b/bridgeconfig/googlechat.tpl.yaml index e26bf22..98772f5 100644 --- a/bridgeconfig/googlechat.tpl.yaml +++ b/bridgeconfig/googlechat.tpl.yaml @@ -121,7 +121,7 @@ bridge: # If using this for other servers than the bridge's server, # you must also set the URL in the double_puppet_server_map. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Whether or not to update avatars when syncing all contacts at startup. update_avatar_initial_sync: true # End-to-bridge encryption support options. diff --git a/bridgeconfig/instagram.tpl.yaml b/bridgeconfig/instagram.tpl.yaml index 64d90d1..dfdb3a2 100644 --- a/bridgeconfig/instagram.tpl.yaml +++ b/bridgeconfig/instagram.tpl.yaml @@ -134,7 +134,7 @@ bridge: # If using this for other servers than the bridge's server, # you must also set the URL in the double_puppet_server_map. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Whether or not created rooms should have federation enabled. # If false, created portal rooms will never be federated. federate_rooms: false diff --git a/bridgeconfig/signal.tpl.yaml b/bridgeconfig/signal.tpl.yaml index 63fe1a7..182cd88 100644 --- a/bridgeconfig/signal.tpl.yaml +++ b/bridgeconfig/signal.tpl.yaml @@ -119,7 +119,7 @@ bridge: # instead of users having to find an access token and run `login-matrix` # manually. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Maximum time for handling Matrix events. Duration strings formatted for https://pkg.go.dev/time#ParseDuration # Null means there's no enforced timeout. diff --git a/bridgeconfig/telegram.tpl.yaml b/bridgeconfig/telegram.tpl.yaml index c81a71d..bb332b8 100644 --- a/bridgeconfig/telegram.tpl.yaml +++ b/bridgeconfig/telegram.tpl.yaml @@ -209,7 +209,7 @@ bridge: # If using this for other servers than the bridge's server, # you must also set the URL in the double_puppet_server_map. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Set to false to disable link previews in messages sent to Telegram. telegram_link_preview: true # Whether or not the !tg join command should do a HTTP request diff --git a/bridgeconfig/twitter.tpl.yaml b/bridgeconfig/twitter.tpl.yaml index b684b58..1b8160b 100644 --- a/bridgeconfig/twitter.tpl.yaml +++ b/bridgeconfig/twitter.tpl.yaml @@ -138,7 +138,7 @@ bridge: # If using this for other servers than the bridge's server, # you must also set the URL in the double_puppet_server_map. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Whether or not created rooms should have federation enabled. # If false, created portal rooms will never be federated. federate_rooms: false diff --git a/bridgeconfig/whatsapp.tpl.yaml b/bridgeconfig/whatsapp.tpl.yaml index 1c90a09..bf402de 100644 --- a/bridgeconfig/whatsapp.tpl.yaml +++ b/bridgeconfig/whatsapp.tpl.yaml @@ -233,7 +233,7 @@ bridge: # instead of users having to find an access token and run `login-matrix` # manually. login_shared_secret_map: - {{ .BeeperDomain }}: appservice + {{ .BeeperDomain }}: "as_token:{{ .ASToken }}" # Whether to explicitly set the avatar and room name for private chat portal rooms. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms. # If set to `always`, all DM rooms will have explicit names and avatars set.