Skip to content

Commit

Permalink
Refactor authentication handler and update workflow filters.
Browse files Browse the repository at this point in the history
Replaced `AuthenticatingApiHttpMessageHandler` with `AuthHttpMessageHandler` in configuration for consistency. Added support for additional branch filters in GitHub workflows. Minor adjustments made to project files and commented-out login page backdrop for future use.
  • Loading branch information
sfmskywalker committed Jan 19, 2025
1 parent 734f99e commit 8a7e2fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- 'main'
- 'bug/*'
- 'enh/*'
- 'feature/*'
- 'issue/*'
release:
types: [ prereleased, published ]
env:
Expand Down
3 changes: 1 addition & 2 deletions src/hosts/Elsa.Studio.Host.CustomElements/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Elsa.Studio.Host.CustomElements.Components;
using Elsa.Studio.Host.CustomElements.HttpMessageHandlers;
using Elsa.Studio.Host.CustomElements.Services;
using Elsa.Studio.Login.HttpMessageHandlers;
using Elsa.Studio.Models;
using Elsa.Studio.Workflows.Designer.Extensions;
using Microsoft.AspNetCore.Components.Web;
Expand Down Expand Up @@ -35,7 +34,7 @@
ConfigureHttpClientBuilder = options =>
{
options.ApiKey = configuration["Backend:ApiKey"];
options.AuthenticationHandler = typeof(AuthenticatingApiHttpMessageHandler);
options.AuthenticationHandler = typeof(AuthHttpMessageHandler);
},
};

Expand Down
4 changes: 4 additions & 0 deletions src/modules/Elsa.Studio.Login/Elsa.Studio.Login.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
<ProjectReference Include="..\..\framework\Elsa.Studio.Shared\Elsa.Studio.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

</Project>
4 changes: 3 additions & 1 deletion src/modules/Elsa.Studio.Login/Pages/Login/Login.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@inherits StudioComponentBase
@layout BasicLayout

@* <div class="login-backdrop" style="left:0; top: 0; bottom:0; right:0; position: fixed; background-color: red; background-image: url(_content/Elsa.Studio.Login/bg.jpg); background-repeat: no-repeat; background-size: cover;"> *@
<div class="d-flex justify-end flex-grow-1">
<MudIconButton Icon="@Icons.Material.Outlined.Book" Color="Color.Inherit" Href="https://v3.elsaworkflows.io/" Target="_blank" title="Documentation"/>
<MudIconButton Icon="@Icons.Custom.Brands.GitHub" Color="Color.Inherit" Href="https://github.com/elsa-workflows/elsa-core" Target="_blank" title="Source code"/>
Expand Down Expand Up @@ -30,4 +31,5 @@
</MudPaper>
</MudStack>
<MudText Typo="Typo.subtitle2" Align="Align.Center" Class="mt-2">Elsa Studio @ClientVersion</MudText>
</MudContainer>
</MudContainer>
@* </div> *@

0 comments on commit 8a7e2fb

Please sign in to comment.