nm-manager: ensure device is exported on D-Bus in authentication request
Summary
nm-manager: ensure device is exported on D-Bus in authentication request
Purpose
The device authentication request is an async process, it can not know
the answer right away, it is not guarantee that device is still
exported on D-Bus when authentication finishes. Thus, do not return
SUCCESS and abort the pending authentication requests when device is
not alive.
https://bugzilla.redhat.com/show_bug.cgi?id=2210271
Checklist
Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:
-
the subject for all commits is concise and explicative -
the message for all commits explains the reason for the change -
the source is properly formatted -
any relevant documentation is up to date -
you have added unit tests if applicable
Edited by Wen Liang