Policy Kit Model - Authentication Agent |
Desktop Apps Training - Policy Kit |
To gain authorizations through authentication, an Authentication Agent is used. The section defines an abstract interface that applications can use to interact with such an agent. This allows different desktop environments to implement different agents with native look and feel. The interface is quite simple. Basically, a PolicyKit Authentication Agent must provide the D-Bus session service with the unique name org.freedesktop.PolicyKit.AuthenticationAgent that exposes a single object with the path / that exports the org.freedesktop.PolicyKit.AuthenticationAgent D-Bus interface. The interface is defined by the following D-Bus introspection data: <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" This file is available as /usr/share/dbus-1/interfaces/org.freedesktop.PolicyKit.AuthenticationAgent.xml on a system with PolicyKit development packages installed. It can be used to generating client glue code. |