Gio.DBusAuthObserver.prototype.allow_mechanism

function allow_mechanism(mechanism: String): Boolean {
    // Gjs wrapper for g_dbus_auth_observer_allow_mechanism()
}
  

Emits the Gio.DBusAuthObserver::allow-mechanism signal on observer.

Since 2.34

mechanism

The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`.

Returns

true if mechanism can be used to authenticate the other peer, false if not.