Bug 365514 - polkit-qt-1: Authority::checkAuthorizationFinished signal does not report who was authorized
Summary: polkit-qt-1: Authority::checkAuthorizationFinished signal does not report who...
Status: REPORTED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-12 17:41 UTC by Alexander Morozov
Modified: 2023-10-06 09:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Morozov 2016-07-12 17:41:16 UTC
Let`s assume we use polkit-qt-1 library for authorization in our daemon.
The daemon receives user requests and try to authorize users calling Authority::checkAuthorization.
If two Authority::checkAuthorization are called before receiving Authority::checkAuthorizationFinished then the daemon can not determine who was authorized on receiving Authority::checkAuthorizationFinished.
IMHO PolkitQt1::Authority class interface should be changed.

Reproducible: Always




polkit-qt-1 from git
commit id 50624e06e88aabd7ae123ad6a4495630f81cd706
Comment 1 Gleb Popov 2023-10-06 09:19:40 UTC
I also stumbled upon this and it is really strange that such obvious feature isn't implemented yet. With current API it is impossible to check for two different authentications in parallel.