you are right, this example is very simplified and does not show how to pass data from the client credentials to the POST request.
The easiest way would be to check out all the methods the ClientCredentialsData object gives you (see https://github.com/hivemq/hivemq-spi/blob/master/src/main/java/com/dcsquare/hivemq/spi/security/ClientCredentialsData.java or https://github.com/hivemq/hivemq-spi/blob/master/src/main/java/com/dcsquare/hivemq/spi/security/ClientData.java) and then just pass all relevant parameters to the Apache HTTPClient. If you are interested how to implement that with HTTPClient, take a look at this link: https://hc.apache.org/httpcomponents-client-ga/quickstart.html
Hope this helps!
Dominik
Thanks
Gianluca
you can use one of the HiveMQ plugins in the HiveMQ plugin directory. For example you can use the file authentication plugin (see http://www.hivemq.com/plugin/file-authentication/)
If you want to prefer authentication with Stormpath, the Stormpath plugin may be for you (http://www.hivemq.com/plugin/stormpath-plugin/)
Of course you can also write your own, get inspired here: https://github.com/dobermai/hivemq-rest-auth-plugin
Hope that helps,
Dominik
Thank you
]]>did you check the following?
* You are using the MQTT port (1883) instead of the Websocket port with MyMQTT
* You disabled or configured the firewall correctly (IPTables)
* You configured the Security Group correctly so port 1883 is free
Does any of these tips help? Let me know if that works for you!
Dominik
]]>Thank you for the post, it’s great. I’ve installed it on Amazon EC2 Ubuntu 14.04 Server. I can access and post messages through HiveMQ Websocket Browser Client, however when I try it from my phone, with the application called MyMQTT server refuses connection. Do you any ideas why it can be?
Thanks,
Amil