🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Solace Oauth
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?
Comments
-
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.
0