Python components...calling user

#1

Hi Raffaele,

Hi,

Is there a mechanism to retrieve the name/role of the 'caller/sender' in
a register/subscribe callback?

Yes, this is called "disclose caller":

https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/wamp/basic/rpc/options/backend.py#L49

your call handler will get a details argument when being invoked:

https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/wamp/types.py#L394

this includes authid and authrole of the WAMP session the caller was authenticated as

Cheers,
/Tobias

···

Am 16.01.2015 um 15:39 schrieb Raffaele Bianco:

Thanks,
  Raffaele

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/c6c34e54-a8ee-447d-b15a-5fd619dac06e%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/c6c34e54-a8ee-447d-b15a-5fd619dac06e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes