Gio.DBusAuthObserver.prototype.authorize_authenticated_peer

function authorize_authenticated_peer(stream: Gio.IOStream, credentials: Gio.Credentials): Boolean {
    // Gjs wrapper for g_dbus_auth_observer_authorize_authenticated_peer()
}
  

Emits the Gio.DBusAuthObserver::authorize-authenticated-peer signal on observer.

Since 2.26

stream

A Gio.IOStream for the Gio.DBusConnection.

credentials

Credentials received from the peer or null.

Returns

true if the peer is authorized, false if not.