The credentials classes are used to encapsulate all authentication
information for the
PlainCredentials class returns the properly
formatted username and password to the
To authenticate with Pika, create a
object passing in the username and password and pass it as the credentials
argument value to the
If you are using
URLParameters you do not need a
credentials object, one will automatically be created for you.
If you are looking to implement SSL certificate style authentication, you would
ExternalCredentials class implementing
the required behavior.
PlainCredentials(username, password, erase_on_connect=False)
A credentials object for the default authentication methodology with RabbitMQ.
If you do not pass in credentials to the ConnectionParameters object, it will create credentials for ‘guest’ with the password of ‘guest’.
If you pass True to erase_on_connect the credentials will not be stored in memory after the Connection attempt has been made.
The ExternalCredentials class allows the connection to use EXTERNAL authentication, generally with a client SSL certificate.