Skip to content

Commit

Permalink
Update Elsa.Studio packages and configure authentication handler
Browse files Browse the repository at this point in the history
The Elsa.Studio, Elsa.Studio.Core, and Elsa.Studio.Login packages have been updated across the projects Elsa.AllInOne.Web and ElsaStudioWebAssembly, from Ver. 3.0.0-preview.148 to Ver. 3.0.0-preview.160. In the Program.cs of ElsaStudioWebAssembly, the authentication mechanism has been adjusted by specifying an AuthenticatingApiHttpMessageHandler for the HttpMessageHandler in the method AddRemoteBackend().
  • Loading branch information
sfmskywalker committed Dec 9, 2023
1 parent 441b12e commit 8bb7d81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Elsa.Studio" Version="3.0.0-preview.148"/>
<PackageReference Include="Elsa.Studio.Login.BlazorWasm" Version="3.0.0-preview.148"/>
<PackageReference Include="Elsa.Studio" Version="3.0.0-preview.160"/>
<PackageReference Include="Elsa.Studio.Login.BlazorWasm" Version="3.0.0-preview.160"/>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Elsa.Studio" Version="3.0.0-preview.148"/>
<PackageReference Include="Elsa.Studio.Core.BlazorWasm" Version="3.0.0-preview.148"/>
<PackageReference Include="Elsa.Studio.Login.BlazorWasm" Version="3.0.0-preview.148"/>
<PackageReference Include="Elsa.Studio" Version="3.0.0-preview.160"/>
<PackageReference Include="Elsa.Studio.Core.BlazorWasm" Version="3.0.0-preview.160"/>
<PackageReference Include="Elsa.Studio.Login.BlazorWasm" Version="3.0.0-preview.160"/>
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/bundles/ElsaStudioWebAssembly/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Elsa.Studio.Core.BlazorWasm.Extensions;
using Elsa.Studio.Extensions;
using Elsa.Studio.Login.BlazorWasm.Extensions;
using Elsa.Studio.Login.HttpMessageHandlers;
using Elsa.Studio.Options;
using Elsa.Studio.Workflows.Designer.Extensions;
using Microsoft.AspNetCore.Components.Web;
Expand All @@ -25,7 +26,7 @@
// Register shell services and modules.
builder.Services.AddCore();
builder.Services.AddShell();
builder.Services.AddRemoteBackend();
builder.Services.AddRemoteBackend(configureElsaClientBuilderOptions: elsaClient => elsaClient.ConfigureHttpClientBuilder = httpClientBuilder => httpClientBuilder.AddHttpMessageHandler<AuthenticatingApiHttpMessageHandler>());
builder.Services.AddLoginModule();
builder.Services.AddDashboardModule();
builder.Services.AddWorkflowsModule();
Expand Down

0 comments on commit 8bb7d81

Please sign in to comment.