diff --git a/dbus_next/auth.py b/dbus_next/auth.py index db91c86..3aa1574 100644 --- a/dbus_next/auth.py +++ b/dbus_next/auth.py @@ -94,6 +94,8 @@ def _authentication_start(self, negotiate_unix_fd=False) -> str: def _receive_line(self, line: str) -> str: response, args = _AuthResponse.parse(line) + if response == _AuthResponse.DATA: + return 'DATA' if response != _AuthResponse.OK: raise AuthError(f'authentication failed: {response.value}: {args}')