mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-09 23:58:10 +03:00
fix safari-oidc https://github.com/rustdesk/rustdesk/issues/14861 (#14867)
This commit is contained in:
@@ -1538,10 +1538,13 @@ class RustdeskImpl {
|
|||||||
|
|
||||||
Future<void> mainAccountAuth(
|
Future<void> mainAccountAuth(
|
||||||
{required String op, required bool rememberMe, dynamic hint}) {
|
{required String op, required bool rememberMe, dynamic hint}) {
|
||||||
return Future(() => js.context.callMethod('setByName', [
|
// Safari only allows auth popups while handling the original user gesture.
|
||||||
|
// Call into JS synchronously so the web OIDC flow can pre-open the window.
|
||||||
|
js.context.callMethod('setByName', [
|
||||||
'account_auth',
|
'account_auth',
|
||||||
jsonEncode({'op': op, 'remember': rememberMe})
|
jsonEncode({'op': op, 'remember': rememberMe})
|
||||||
]));
|
]);
|
||||||
|
return Future.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> mainAccountAuthCancel({dynamic hint}) {
|
Future<void> mainAccountAuthCancel({dynamic hint}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user