[zeromq-dev] Indentify message sender
Justin Azoff
justin.azoff at gmail.com
Thu Oct 19 15:37:07 CEST 2017
Additionally, at least with czmq, the zap handler also adds the zcert
metadata to the socket metadata. So if you had this in the zcert
file:
metadata
can-read = true
can-write = true
you should be able to access the 'can-read' attribute on the message
metadata in the same way.
On Thu, Oct 19, 2017 at 6:27 AM, <Simon.Giesecke at btc-ag.com> wrote:
> Hi,
>
>
>
> you can query the User-Id in the message metadata. See the example code on
> http://api.zeromq.org/4-2:zmq-msg-gets
>
>
>
> Best regards
>
> Simon
>
>
>
> Von: zeromq-dev [mailto:zeromq-dev-bounces at lists.zeromq.org] Im Auftrag von
> Andrei Bica
> Gesendet: Donnerstag, 19. Oktober 2017 15:16
> An: zeromq-dev at lists.zeromq.org
> Betreff: [zeromq-dev] Indentify message sender
>
>
>
> I'm using CURVE mechanism to authenticate clients connecting to a server and
> using its services trough ZeroMQ (ROUTER/DEALER). Is it possible to identify
> who sent the request? Which client sent the request so I can perform
> authorisation checks (e.g. if the client has the proper permissions to do
> some operation)? Or ZeroMQ and CURVE was not intended to be used this way?
>
> Thanks,
>
> Andrei Bica
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
--
- Justin
More information about the zeromq-dev
mailing list