'BlueZ missing RequestAuthorization

I have a Bluetooth client which implements an agent with NoInputNoOutput capabilities (using BlueZ version 5.54 in Linux).

When a new pairing occurs, I expect the agent to receive a RequestAuthorization dbus message, but this never arrives.

From the BlueZ agent-api documentation

void RequestAuthorization(object device)

This method gets called to request the user to authorize an incoming pairing attempt which would in other circumstances trigger the just-works model, or when the user plugged in a device that implements cable pairing. In the latter case, the device would not be connected to the adapter via Bluetooth yet.

      Possible errors: org.bluez.Error.Rejected
                       org.bluez.Error.Canceled

I have used dbus-monitor --system to check for the existence of the message but it's not there.

Can anyone suggest why this wouldn't be sent?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source