Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1191

Warning: mysql_real_escape_string(): A link to the server could not be established in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1191

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1194

Warning: mysql_real_escape_string(): A link to the server could not be established in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1194

Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1197

Warning: mysql_real_escape_string(): A link to the server could not be established in /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php on line 1197

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00bb009/wordpress/wp-content/plugins/statpress/statpress.php:1191) in /www/htdocs/w00bb009/wordpress/wp-includes/feed-rss2-comments.php on line 8
Kommentare zu: Bringing MQTT authentication and REST together http://forkbomb-blog.de/2014/bringing-mqtt-authentication-and-rest-together Random IT Thoughts & Tutorials Wed, 19 Aug 2015 08:08:09 +0000 hourly 1 https://wordpress.org/?v=4.3.34 Von: Dominik http://forkbomb-blog.de/2014/bringing-mqtt-authentication-and-rest-together/comment-page-1#comment-336 Wed, 19 Aug 2015 08:08:09 +0000 http://forkbomb-blog.de/?p=366#comment-336 Hi Gianluca,

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

]]>
Von: Gianluca http://forkbomb-blog.de/2014/bringing-mqtt-authentication-and-rest-together/comment-page-1#comment-335 Tue, 18 Aug 2015 08:30:37 +0000 http://forkbomb-blog.de/?p=366#comment-335 Good example, but you do not show how ClientCredentialsData parameter is used in the HTTP POST.

Thanks
Gianluca

]]>