Hi,
Am 26.03.2016 um 04:53 schrieb Gareth Bult:
> Hi Steve, if you add the "disclose_me" option at the client end, the
> server will be able to see the session id, for example;
This no longer works using the current release, which now implements the
revisions of the WAMP spec regarding caller/publisher disclosure.
Here is a complete example of the new way:
https://github.com/crossbario/crossbarexamples/tree/master/disclose
Note: all of session ID, authid and authrole are disclosed to the
caller/subscriber.
Cheers,
/Tobias
>
> client.js
> session.call(topic,[args],{},{disclose_me:true}).then(success,fail);
>
> server.py
> def topic(self, params, details):
> session_id = getattr(details,'caller')
>
> I think you should then be able to lookup the details you want using
> "wamp.session.get" meta procedure ..
>
>
>
> On Thursday, 24 March 2016 21:30:41 UTC, Steve Ditlinger wrote:
>
>
>
> Is there a way (that I am not seeing) to allow a registered RPC to
> determine who is calling it? Or the role of the caller?
>
> Thanks,
> Steve
>
> --
> 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/d7702c57-fdcf-4dea-aefe-afa82635c8af%40googlegroups.com
> <
https://groups.google.com/d/msgid/crossbario/d7702c57-fdcf-4dea-aefe-afa82635c8af%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.