From e88ffd669325cad3c53b10b6ef71451191ea6998 Mon Sep 17 00:00:00 2001 From: Chris Jacobsen Date: Sun, 31 Mar 2024 20:54:27 -0400 Subject: [PATCH 1/2] Duo partially working --- BLAZAM/BLAZAM.csproj | 2 +- BLAZAM/Pages/Login.razor | 23 +++++++-- BLAZAM/Pages/MFACallback.cshtml | 7 +++ BLAZAM/Pages/MFACallback.cshtml.cs | 13 +++++ BLAZAM/Program.cs | 2 +- BLAZAM/ProgramEvents.cs | 3 ++ BLAZAM/ProgramHelpers.cs | 7 +++ BLAZAM/wwwroot/js/blazam.js | 13 +++-- BLAZAMCommon/AppEvent.cs | 1 + BLAZAMCommon/Data/LoginRequest.cs | 1 + BLAZAMGui/UI/Outputs/StatusCheck.razor | 29 +++++++---- .../UI/Settings/AuthenticationSetting.razor | 14 +++--- .../AppAuthenticationStateProvider.cs | 49 ++++++++++++------- BLAZAMServices/Duo/DuoClientProvider.cs | 2 +- BLAZAMServices/ServiceEvents.cs | 18 +++++++ BLAZAMSession/ApplicationUserState.cs | 3 ++ .../Interfaces/IApplicationUserState.cs | 4 +- .../IApplicationUserStateService.cs | 1 + 18 files changed, 146 insertions(+), 46 deletions(-) create mode 100644 BLAZAM/Pages/MFACallback.cshtml create mode 100644 BLAZAM/Pages/MFACallback.cshtml.cs create mode 100644 BLAZAMServices/ServiceEvents.cs diff --git a/BLAZAM/BLAZAM.csproj b/BLAZAM/BLAZAM.csproj index 6d1f5171..99ff5003 100644 --- a/BLAZAM/BLAZAM.csproj +++ b/BLAZAM/BLAZAM.csproj @@ -6,7 +6,7 @@ enable false 0.9.0 - 2024.03.30.1734 + 2024.04.01.0037 false BLAZAM False diff --git a/BLAZAM/Pages/Login.razor b/BLAZAM/Pages/Login.razor index dfe5e21d..9c531b6f 100644 --- a/BLAZAM/Pages/Login.razor +++ b/BLAZAM/Pages/Login.razor @@ -1,6 +1,6 @@ @page "/login" @using BLAZAM.Static; - +@inject IHttpContextAccessor HttpContextAccessor @inherits ValidatedForm @inject IJSRuntime JSRuntime @layout LoginLayout @@ -96,7 +96,11 @@ - + + + + +