From 4c88524f0e2134ef04690012e7882a15e874233b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bispo?= Date: Tue, 20 Feb 2024 18:46:47 +0000 Subject: [PATCH] [PM-4615] [PM-6217] Add new DUO frameless 2fa flow (#2956) * [PM-4615] Update DUO 2FA screen to support DUO frameless flow. --- src/Core/Constants.cs | 1 + src/Core/Pages/Accounts/TwoFactorPage.xaml | 26 +++- .../Pages/Accounts/TwoFactorPageViewModel.cs | 115 ++++++++++++++++-- .../Localization/AppResources.Designer.cs | 27 ++++ .../Resources/Localization/AppResources.resx | 9 ++ 5 files changed, 166 insertions(+), 12 deletions(-) diff --git a/src/Core/Constants.cs b/src/Core/Constants.cs index b628be1d0..e11716326 100644 --- a/src/Core/Constants.cs +++ b/src/Core/Constants.cs @@ -47,6 +47,7 @@ namespace Bit.Core public const string ConfigsKey = "configsKey"; public const string DisplayEuEnvironmentFlag = "display-eu-environment"; public const string RegionEnvironment = "regionEnvironment"; + public const string DuoCallback = "bitwarden://duo-callback"; /// /// This key is used to store the value of "ShouldConnectToWatch" of the last user that had logged in diff --git a/src/Core/Pages/Accounts/TwoFactorPage.xaml b/src/Core/Pages/Accounts/TwoFactorPage.xaml index ad0904ce8..a59014055 100644 --- a/src/Core/Pages/Accounts/TwoFactorPage.xaml +++ b/src/Core/Pages/Accounts/TwoFactorPage.xaml @@ -132,14 +132,26 @@ - + +