Bug 365514

Summary: polkit-qt-1: Authority::checkAuthorizationFinished signal does not report who was authorized
Product: [Plasma] policykit-kde-agent-1 Reporter: Alexander Morozov <a.morozov>
Component: generalAssignee: Dario Freddi <drf>
Status: REPORTED ---    
Severity: wishlist CC: 6yearold
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.