Commit Graph

7 Commits

Author SHA1 Message Date
Aleksander Morgado
089a983850 auth: refactor and simplify authentication related setup
We get rid of the MMAuthRequests; and we leave up to the caller and user of the
MMAuthProvider the handling of request cancellations through the provided
GCancellable.

Also made GIO-async-friendly methods.
2012-03-16 14:53:15 +01:00
Aleksander Morgado
5bee67c032 core: use GDBusMethodInvocation in the auth API 2012-03-16 14:28:15 +01:00
Aleksander Morgado
5f167fd199 Revert "core: avoid using DBusGMethodInvocation in auth API"
This reverts commit 013fd179f458d87bba9fd7657ffe1bd90169f231.

We will start using GDBus-only based code from now on.
2012-03-16 14:28:15 +01:00
Aleksander Morgado
d47176a32c core: avoid using DBusGMethodInvocation in auth API
While porting to GDBus, use opaque pointers. This allows us to include either a
DBusGMethodInvocation or a GDBusMethodInvocation in the 'context' pointer.

Once fully ported to GDBus, we can safely change it back to make the context be
a GDBusMethodInvocation.
2012-03-15 14:14:19 +01:00
Dan Williams
28d065c1f1 core: implement optional PolicyKit-based authentication 2010-02-27 12:51:13 -08:00
Dan Williams
3b6a58145f core: simply authentication request objects 2010-02-27 10:29:34 -08:00
Dan Williams
438a047935 core: add authorization providers and optional PolicyKit support
When the support is complete, use --with-polkit to enable
PolicyKit support.  It's not there yet, but this commit adds an
authorization provider framework which will be extended to allow
hooking into PolicyKit.
2010-02-26 18:01:55 -08:00