feat: request approval (#16784)

* feat: add connections without sending passwords

Add Without password actions and pass the selection through desktop,
mobile and Web sessions. Omit the password when constructing LoginRequest,
preserve saved credentials, and reuse the existing approval and OS login
dialogs. Keep protocol and controlled-side authentication changes separate.

* fix: preserve login method across session windows

* fix: skip password persistence for consent connections

* refactor: unify request approval menus and naming

* chore: move request approval translation key to the end

* i18n: translate request approval menu label

* fix: align request approval menu layout and icons

* fix: avoid duplicate focus stops in request approval menus

* fix: distinguish request approval submenus on mobile

* fix: open overflowing submenus to the left

* Revert "fix: distinguish request approval submenus on mobile"

This reverts commit 7f0e50d4e4.
This commit is contained in:
21pages authored and GitHub committed 2026-11-02 23:48:27 +08:00
1 parent 037b8787fe
commit a85ad89ffc
89 files changed
+1110 -152

No files matched your search

@@ -225,6 +225,7 @@ class RustDeskMultiWindowManager {
String remoteId,
List<int> windows, {
String? password,
String loginMethod = '',
bool? forceRelay,
String? switchUuid,
bool? isRDP,
@@ -249,6 +250,9 @@ class RustDeskMultiWindowManager {
if (connToken != null) {
params['connToken'] = connToken;
}
if (loginMethod.isNotEmpty) {
params['loginMethod'] = loginMethod;
}
final msg = jsonEncode(params);
// separate window for file transfer is not supported
@@ -270,6 +274,7 @@ class RustDeskMultiWindowManager {
Future<MultiWindowCallResult> newRemoteDesktop(
String remoteId, {
String? password,
String loginMethod = '',
bool? isSharedPassword,
String? switchUuid,
bool? forceRelay,
@@ -280,6 +285,7 @@ class RustDeskMultiWindowManager {
remoteId,
_remoteDesktopWindows,
password: password,
loginMethod: loginMethod,
forceRelay: forceRelay,
switchUuid: switchUuid,
isSharedPassword: isSharedPassword,
@@ -289,6 +295,7 @@ class RustDeskMultiWindowManager {
Future<MultiWindowCallResult> newFileTransfer(
String remoteId, {
String? password,
String loginMethod = '',
bool? isSharedPassword,
bool? forceRelay,
String? connToken,
@@ -299,6 +306,7 @@ class RustDeskMultiWindowManager {
remoteId,
_fileTransferWindows,
password: password,
loginMethod: loginMethod,
forceRelay: forceRelay,
isSharedPassword: isSharedPassword,
connToken: connToken,
@@ -308,6 +316,7 @@ class RustDeskMultiWindowManager {
Future<MultiWindowCallResult> newViewCamera(
String remoteId, {
String? password,
String loginMethod = '',
bool? isSharedPassword,
String? switchUuid,
bool? forceRelay,
@@ -319,6 +328,7 @@ class RustDeskMultiWindowManager {
remoteId,
_viewCameraWindows,
password: password,
loginMethod: loginMethod,
forceRelay: forceRelay,
switchUuid: switchUuid,
isSharedPassword: isSharedPassword,
@@ -330,6 +340,7 @@ class RustDeskMultiWindowManager {
String remoteId,
bool isRDP, {
String? password,
String loginMethod = '',
bool? isSharedPassword,
bool? forceRelay,
String? connToken,
@@ -340,6 +351,7 @@ class RustDeskMultiWindowManager {
remoteId,
_portForwardWindows,
password: password,
loginMethod: loginMethod,
forceRelay: forceRelay,
isRDP: isRDP,
isSharedPassword: isSharedPassword,
@@ -350,6 +362,7 @@ class RustDeskMultiWindowManager {
Future<MultiWindowCallResult> newTerminal(
String remoteId, {
String? password,
String loginMethod = '',
bool? isSharedPassword,
bool? forceRelay,
String? connToken,
@@ -375,6 +388,9 @@ class RustDeskMultiWindowManager {
"isSharedPassword": isSharedPassword,
"connToken": connToken,
};
if (loginMethod.isNotEmpty) {
params['loginMethod'] = loginMethod;
}
final msg = jsonEncode(params);
// Always create a new window for terminal