From eb0395e40f7b170d8ecf78573104062aa437535e Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 29 Dec 2023 21:54:27 +0100 Subject: [PATCH] Update Elsa.Studio packages and modify authentication setup The Elsa.Studio packages have been updated to version "3.0.0-preview.177" from "3.0.0-preview.174" in several project files. Additionally, in the "Program.cs" of ElsaStudioWebAssembly, the way the authentication handler is set up for the remote backend has been simplified and made more straightforward. --- .../Elsa.ServerAndStudio.Web.csproj | 4 ++-- src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj | 4 ++-- .../ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj | 6 +++--- src/bundles/ElsaStudioWebAssembly/Program.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bundles/Elsa.ServerAndStudio.Web/Elsa.ServerAndStudio.Web.csproj b/src/bundles/Elsa.ServerAndStudio.Web/Elsa.ServerAndStudio.Web.csproj index f1be95e86..bcaf30f1c 100644 --- a/src/bundles/Elsa.ServerAndStudio.Web/Elsa.ServerAndStudio.Web.csproj +++ b/src/bundles/Elsa.ServerAndStudio.Web/Elsa.ServerAndStudio.Web.csproj @@ -34,8 +34,8 @@ - - + + \ No newline at end of file diff --git a/src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj b/src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj index 0f8d7d213..9b6a06e05 100644 --- a/src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj +++ b/src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj @@ -21,8 +21,8 @@ - - + + diff --git a/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj b/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj index 8c4ae412b..27d7ecd1f 100644 --- a/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj +++ b/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj @@ -19,9 +19,9 @@ - - - + + + diff --git a/src/bundles/ElsaStudioWebAssembly/Program.cs b/src/bundles/ElsaStudioWebAssembly/Program.cs index 21fbd6657..eed41fcfa 100644 --- a/src/bundles/ElsaStudioWebAssembly/Program.cs +++ b/src/bundles/ElsaStudioWebAssembly/Program.cs @@ -26,7 +26,7 @@ builder.RootComponents.RegisterCustomElsaStudioElements(); // Register shell services and modules. builder.Services.AddCore(); builder.Services.AddShell(); -builder.Services.AddRemoteBackend(configureElsaClientBuilderOptions: elsaClient => elsaClient.ConfigureHttpClientBuilder = httpClientBuilder => httpClientBuilder.AddHttpMessageHandler()); +builder.Services.AddRemoteBackend(elsaClient => elsaClient.AuthenticationHandler = typeof(AuthenticatingApiHttpMessageHandler)); builder.Services.AddLoginModule(); builder.Services.AddDashboardModule(); builder.Services.AddWorkflowsModule();