[zeromq-dev] Authenticate a given client connection
Alexandre Fromage
alex at taxistop.com
Wed Mar 13 15:29:09 CET 2013
Dear all,
A more appropriate subject would have been "Associate an identity to a given
client", but "Identity" has a specific (close) meaning for ZeroMQ.
I have a ROUTER and I would like, at application level to associate each
client (DEALER) generated id to an application context. For example,
associate, for the time of the connection,
the ZeroMQ auto-generated connection id to a given user account.
It is in itselft easy to do, but:
each time there is a disconnection/reconnection (may happen a lot) I need to
immediately re-authenticate the client when it reconnects. However, it needs
to happen
before the client resends all its outstanding requests to the server (which
are queued within the DEALER).
Right now, I can only think of two things, either:
-discard all messages which come when the client is not yet re-authenticated
(a bit extreme and consumes bandwidth for nothing).
-modify the Zmq protocol to enforce authentication when connection is
(re)established.
I believe I cannot use ZeroMQ identities as my clients have constantly
changing addresses.
Do you think any of those possibilities make sense?
Any suggestion?
Thank you,
Kind regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130313/44d3b53f/attachment.htm>
More information about the zeromq-dev
mailing list