I haven't tried it to know for sure, but I would expect it to if you have installed the relevant cyrus-sasl packages to provide support for it (e.g cyrus-sasl-devel and cyrus-sasl-scram). Proton certainly supports SCRAM-SHA-1 from way back, when thats all cyrus did, so I'd expect it to work with SCRAM-SHA-256 now that is supported by cyrus.
The mech=none error suggests the client and server couldn't agree on a mech they both supported, i.e perhaps that either you dont have the necessary cyrus packages installed for it to work, or your broker isnt actually set up to offer SCRAM-SHA-256. On Tue, 19 Mar 2024 at 11:26, abdelrhman abdelhmaed <abdel....@gmail.com> wrote: > > Hi, > I am using the qpid proton library to connect to Broker( Apache ActiveMQ > Artemis). > The authentication mechanism must be SALS SCRAM_SHA-256. > i tried to configure Qpid proton client to use this mechanism via the > following methods > > std::string MECHANISM = "SCRAM-SHA-256"; > ConnectionOptions.sasl_allowed_mechs(MECHANISM); > ConnectionOptions.sasl_allow_insecure_mechs(true); > ConnectionOptions.sasl_enabled(true); > ConnectionOptions.user("guest"); > ConnectionOptions.password("guest"); > > but it dont work out. I got the following error message > > amqp:unauthorized-access: Authentication failed [mech=none] > > so my question wether qpid proton client support this mechanism and if so, > how i am supposed to configure it --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org