Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Event Hub "publisher" endpoint and token : is it only valid for HTTP REST APIs ?

$
0
0

Hello,

as explained here http://msdn.microsoft.com/en-us/library/azure/dn789974.aspx I can create a SAS rule to allow devices to send only to an event hub.

Now I can use this rule and the related connection string to create an EventHubClient object who is capable to send only to the event hub. In this case I can't have fine grained control on devices ... I mean, all devices created by Azure SDK APIs with this SAS rule are capable only to send and If I want to block some devices, I can't ... removing the rule I'll block all devices.

For fine grained control there is the publisher concept (as an endpoint on the event hub).

Starting from the same SAS rule (for sending only), I can generate more tokens and give each of the to the devices. In this case, without removing the SAS rule I can block single device revoking the token.

Now ... reading on the Event Hub documentation I can't find any API to send data using publisher concept (and using token).

See also AMQP.Net Lite documentation (http://amqpnetlite.codeplex.com/wikipage?title=Using%20Amqp.Net%20Lite%20with%20Azure%20Server%20Bus%20Event%20Hub&referringTitle=Documentation) ... I can send with publisher concept but without specifying token, only SAS rule (key name and shared key).

My understanding is that the token is useful only with HTTP REST APIs (put the toke in the Authorization header) ... is it right ?

Thanks,

Paolo

 


Paolo Patierno



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>