reg = yield self.register(list_data, 'adm.session.list', options = RegisterOptions(details_arg = 'details'))
Then, when I call the 'adm.session.list' topic:
rv = yield self.call('adm.session.list', options = CallOptions(timeout=2000,discloseMe = True))
In my list_data function I am not getting most of the Caller settings:
details.caller 1502781270
details.authid None
details.authrole None
details.authmethod None
details.caller_transport None
I am getting the session id. The user is authenticated. Version 0.9.3-3.
Happy Thanksgiving!
-g
@abc.abstractmethod
def authorize(self, session, uri, action):
"""
Authorization hook: check if the given ``session`` is authorized to perform
the given ``action`` on the given ``uri``.
:param session: Application session on which the action is to be authorized.
:type session: A provider of :class:`autobahn.wamp.interfaces.ISession`.
:param uri: The URI on which the session wants to perform the action.
:type uri: str
:param action: The action the session wants to perform. One of
``IRouter.ACTION_CALL``, ``IRouter.ACTION_REGISTER``,
``IRouter.ACTION_PUBLISH`` or ``IRouter.ACTION_SUBSCRIBE``.
:type action: int
"""
> <mailto:autobahnws+unsub...@googlegroups.com>.
return self._session.call(self._authorizer, session._session_details, uri, action) |
Hi Greg,
good to hear you've found the issue .. or at least solved part of it. I'm on the road, cannot look much around in code on a 4 inch display .. so I cannot assist right now.
In general, expect the routing code in Crossbar.io diverge and surpass the basic router in AutobahnPython more and more. In particular over the coming months as we ramp up dev on advanced WAMP features and router-to-router communication. It might even no longer subclass AB router classes ...
Sent from Mobile (Google Nexus 5)
To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/6d5e9f0f-fab4-4262-a779-aee493ea8a17%40googlegroups.com.