Registers an authentication agent.
Note that this should be called by the same effective UID which will be the real UID using the PolkitAgentSession API or
otherwise calling authentication_agent_response.
The calling thread is blocked until a reply is received. See register_authentication_agent for the asynchronous version.
| this |
A Authority. |
| subject |
The subject the authentication agent is for, typically a UnixSession object. |
| locale |
The locale of the authentication agent. |
| object_path |
The object path for the authentication agent. |
| cancellable |
A Cancellable or null. |
|
true if the authentication agent was successfully registered, false if throws is set. |