-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Hello, we were trying to use rhea to connect to a rabbitmq server with PLAIN oauth2, i tried following this issue #393
and connetted to the container with these options:
const connection_options = {
host: "localhost",
port: 5672,
username: "guest"
token: "<token-value>"
}and it keeps saying that the token is for a wrong user, so next i tried to put password with the token value and it worked just fine. Is this the right way to do it? or am i doing something wrong?
Then of course before the token expires i need to update its value, is there a way i can do that? I thought it was possible with the connection_details
param, so doing something like this:
let details = {
host: "localhost",
port: 5672,
username: "guest"
token: "<token-value>"
}
container.connect({
connection_details: function() {
return details
}
})
// here i can update details
details.token = "<new-token-value">But it keeps reconnecting saying the sasl mechanism is not enabled.
Am i doing something wrong, can you help us understand? Thank you in advance!
Metadata
Metadata
Assignees
Labels
No labels