Relrin / kurier

A cross-platform GUI client for testing AMQP-based APIs
BSD 3-Clause "New" or "Revised" License
39 stars 2 forks source link

Passing credentials into the application #19

Closed philross88 closed 4 years ago

philross88 commented 5 years ago

How do you pass the credentials to connect to the queue?

Relrin commented 5 years ago

Hello, @philross88

Thank you for opening an issue here.

The idea is pretty straightforward: it mostly follows the AMQP URI specification, except the part for arguments with the "?" and the "&" symbols like in HTTP.

So, in the application you will need to specify the URI with credentials in the amqp://username:password@host:port/vhost format, where:

philross88 commented 5 years ago

Thanks but I keep getting "could not pass AMQP URL" I am following the right syntax.

Relrin commented 5 years ago

In general, this application uses URLParameters class, which is the part of the pika.connection module. For more details about Pika's URLs, you can also read in the official documentation, here. Make sure that you are typing the schema that requested by Pika library, in the format that the URLParameters class requires.

By the way, can you provide the example of URL string, that you're using and specifying for connecting to AMQP node?

Relrin commented 4 years ago

Closing the issue due the long author's inactivity.