commit 4937dc017cb4ad2a10363b72a961b47cb9dce932
Author: selfhoster1312 <selfhoster1312@kl.netlib.re>
Date: Fri Dec 12 10:54:31 2025 +0000
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index d1ebf60..3e0c800 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -1976 +1977 @@ func (b *Bxmpp) createXMPP() error {
Resource: "",
InsecureAllowUnencryptedAuth: b.GetBool("NoTLS"),
DebugWriter: b.Log.Writer(),
+ Mechanism: b.GetString("Mechanism"),
}
var err error
b.xc, err = options.NewClient()
diff --git a/docs/protocols/xmpp/settings.md b/docs/protocols/xmpp/settings.md
index 5b8ff06..f62731a 100644
--- a/docs/protocols/xmpp/settings.md
+++ b/docs/protocols/xmpp/settings.md
@@ -813 +8116 @@ XMPP server to connect to.
```toml
Server="jabber.example.com:5222"
```
+
+## Mechanism
+
+Force an explicit SASL mechanism for authentication. This is a very advanced setting
+when debugging authentication problems and potential upstream go-xmpp authentication
+bugs. If you don't understand it, you don't need it.
+
+- Setting: **OPTIONAL**
+- Format: *string*
+- Example:
+ ```toml
+ Mechanism="PLAIN"
+ ```