SASLAnonymous Class

SASL Annoymous AMQP authentication mixin. SASL connection with no credentials. If intending to use annoymous auth to set up a CBS session once connected, use SASTokenAuth or the CBSAuthMixin instead.

Inheritance
SASLAnonymous

Constructor

SASLAnonymous(hostname, port=5671, verify=None, http_proxy=None, transport_type=<TransportType.Amqp: 1>, encoding='UTF-8')

Parameters

hostname
str or bytes
Required

The AMQP endpoint hostname.

port
int
default value: 5671

The TLS port - default for AMQP is 5671.

verify
str
default value: None

The path to a user-defined certificate.

http_proxy
dict
default value: None

HTTP proxy configuration. This should be a dictionary with the following keys present: 'proxy_hostname' and 'proxy_port'. Additional optional keys are 'username' and 'password'.

transport_type
<xref:uamqp.TransportType>
default value: TransportType.Amqp

The transport protocol type - default is ~uamqp.TransportType.Amqp. ~uamqp.TransportType.AmqpOverWebsocket is applied when http_proxy is set or the transport type is explicitly requested.

encoding
str
default value: UTF-8

The encoding to use if hostname is provided as a str. Default is 'UTF-8'.