Add support for fingerprint-gui's polkit agent.

Closes #5880.
Merge remote-tracking branch 'refs/remotes/ivan/feature/add-fingerprint-gui-polkit-support' into develop