Skip to content

Commit 607633a

Browse files
Extend AMQP 0-9-1 and AMQP 1.0 protocol variants for auth attempts
1 parent 6740f33 commit 607633a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commons.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ pub enum SupportedProtocol {
5151
/// Represents the inter-node and CLI tool communication protocol
5252
/// (a.k.a. the Erlang distribution protocol)
5353
Clustering,
54-
/// Represents both AMQP 1.0 and AMQP 0-9-1 because they share a listener
55-
#[serde(rename = "amqp")]
54+
/// Represents both AMQP 1.0 and AMQP 0-9-1 because they share a listener.
55+
/// Some API endpoints (e.g. auth attempts) return "amqp091" or "amqp10" specifically.
56+
#[serde(rename = "amqp", alias = "amqp091", alias = "amqp10")]
5657
AMQP,
5758
/// Represents both AMQP 1.0 with TLS enabled and AMQP 0-9-1 with TLS enabled
5859
#[serde(rename = "amqp/ssl")]

0 commit comments

Comments
 (0)