Try using user/password instead of user:password in your connection string:

container.Dial(“tcp”, “amqps://USER/PASSWORD@ENDPOINT:5671/ENTITY”)


This follows the pattern I know to work with the cli tools:

qpid-stat amqps://USERNAME/PASSWORD@localhost:5672 -q




> On Oct 17, 2017, at 7:48 PM, Bruno Terkaly <[email protected]>
wrote:
>
> I have a quick question around passing tokens for SASL plain using Golang.
>
>  *   Goal – Pass SASL PLAIN TOKENS with URL
>
>  *   Question 1 – Does anyone have an example or guidance about how to do
it?
>
>  *   Question 2 – If not, is there a good example to draw from to
implement it?
>
>  *   Golang Link that I tried - https://github.com/apache/
qpid-proton/blob/master/examples/go/electron/send.go
>
>  *   The Syntax in Golang that failed – container.Dial(“tcp”,
“amqps://USER:PASSWORD@ENDPOINT:5671/ENTITY”)
>
>  *   Error from runtime when executing send.go – “Too many colons in URL”
>
>  *   Attempted Fix – see Note 1 below
>
>
>
> Note 1
>
> The recommendation is to use square brackets as follows. But they did not
solve the issue.
>
> amqps://[RootManageSharedAccessKey:PASSWORD@layer-software.
servicebus.windows.net]:5671/layerqueue
>
>
>
> Any guidance is greatly appreciated.
>
>
>
> Bruno

Reply via email to