Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

Solace Oauth

tamikam
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(ExceptionHelper.java:28)
at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:990)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:118)
at java.lang.Thread.run(Thread.java:748)

Anyone else running into the Same issue?

Tagged:

Comments

  • arih
    arih Member, Employee Posts: 125 Solace Employee

    Hi,

    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.

This Month's Leaders

This Week's Leaders