After configuring ejabberd with sql authentication it works as expected, by advertising the DIGEST-MD5 and SCRAM-SHA-1 as possible authentication mechanisms.
But when I add the possibility to authenticate as anonymous it stops advertising DIGEST-MD5 and SCRAM-SHA-1 as possible auth mechanisms.
After configuring ejabberd with sql authentication it works as expected, by advertising the DIGEST-MD5 and SCRAM-SHA-1 as possible authentication mechanisms. But when I add the possibility to authenticate as anonymous it stops advertising DIGEST-MD5 and SCRAM-SHA-1 as possible auth mechanisms.
Example:
host_config: "xmpp.example.com": auth_method: [sql]
[debug] (tls|<0.570.0>) Send XML on stream =
host_config: "xmpp.example.com": auth_method: [sql, anonymous]
[debug] (tls|<0.554.0>) Send XML on stream =
Not sure if the issue is on docker or on ejabberd itself, if this is not the place for this issue I will close it