Solace Oauth

tamikam Member Posts: 1

We are trying to connect to an Oauth provider to verify tokens sent in by the client. We have changed several parameters and can not get passed this one error.

C:\Users\ABC\Desktop\Solace API\solace-samples-mqtt\solace-samples-mqtt\build>staged\bin\topicPublisher tcp://host:port 1ABC_USER01 1ABC_USER01 TopicPublisher initializing...
Connecting to Solace messaging at tcp://host:port
reason 5
msg Not authorized to connect
loc Not authorized to connect
cause null
excep Not authorized to connect (5)
Not authorized to connect (5)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(
at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(

Anyone else running into the Same issue?



  • arih
    arih Member, Employee Posts: 125 Solace Employee


    I wrote a blog on using OAuth a while back, might be useful to check. For now, just checking if your password 1ABC_USER01 is the one you used for OAuth? If so, it won't work since the broker requires the password to be in a specific format such as OAUTH~provider~token.