Skip to content

Anonymous

Overview

This authentication method allows the users to connect anonymously.

Configuration options

auth.anonymous.allow_multiple_connections

  • Syntax: boolean
  • Default: false
  • Example: allow_multiple_connections = true

When set to true, allows multiple connections from the same JID using the anonymous authentication method.

auth.anonymous.protocol

  • Syntax: string, one of "sasl_anon", "login_anon", "both"
  • Default: sasl_anon
  • Example: protocol = "both"

Specifies the SASL mechanisms supported by the anonymous authentication method:

  • sasl_anon - support only the the ANONYMOUS mechanism,
  • login_anon - support the non-anonymous mechanisms (PLAIN, DIGEST-MD5, SCRAM-*),
  • both - support both types of mechanisms.

Example

1
2
3
4
5
6
[auth]
  methods = ["anonymous"]

  [auth.anonymous]
    allow_multiple_connections = true
    protocol = "both"