qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Vasters <cleme...@microsoft.com.INVALID>
Subject RE: SASL PLAIN Tokens and Golang Question
Date Wed, 18 Oct 2017 08:04:57 GMT
A forward-slash '/' as the username and password separator is a surprise, because [1] and more
importantly [2]

Note: The rule in the quoted Proton-C doc formally disallows any occurrence of '/' for the
password, but it doesn't enforce it [3] so base64-encoded (with '/') strings are factually
working and in use.

[1] https://tools.ietf.org/html/rfc3986#section-3.2.1 
[2] https://qpid.apache.org/releases/qpid-proton-master/proton/c/api/group__url.html 
[3] https://github.com/apache/qpid-proton/blob/8a891c92b7a4f56d009e1e437d979c3379fe4a6f/proton-c/src/extra/url.c#L89



-----Original Message-----
From: Chester [mailto:knappch@gmail.com] 
Sent: Wednesday, October 18, 2017 4:11 AM
To: users@qpid.apache.org
Subject: Re: SASL PLAIN Tokens and Golang Question

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 <brunoterkaly@hotmail.com>
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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2F&data=02%7C01%7Cclemensv%40microsoft.com%7C6556bc3e884b4218232c08d515cd783a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636438894590155823&sdata=RcTs8X%2B2DWvJhSYjuNG7wuf9OB3q9GaQaGFAyusTpNY%3D&reserved=0
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
Mime
View raw message