LEW21 / pydbus

Pythonic DBus library
GNU Lesser General Public License v2.1
327 stars 76 forks source link

Can't get the connection name that originated a method call #13

Closed catern closed 7 years ago

catern commented 8 years ago

As far as I can tell, it's not possible to get the connection name that originated a method call (when publishing an object). This makes it impossible to authenticate the caller based on their UID or other attributes.

akruis commented 8 years ago

I had a similar problem and hacked pydbus a bit. See https://github.com/akruis/pydbus/blob/master/pydbus/tests/publish_async.py for an example. I'll create a pull request, once I performed some more tests.

Update: pull request is #15

LEW21 commented 7 years ago

Solved with https://github.com/LEW21/pydbus/commit/8e5d4d9a0712f92dfc60fce4a17f01a7478c10fa and https://github.com/LEW21/pydbus/commit/39c4b8e2c11c434a7e134fe801a42178faf741e9.