Make SasTokens implicit dependency of Workflows API

SAS tokens are used by the Events/Trigger API endpoint.
This commit is contained in:
Sipke Schoorstra 2023-09-26 15:11:46 +02:00
parent e75e600910
commit 5dd6c85045
2 changed files with 2 additions and 1 deletions

View file

@ -149,7 +149,6 @@ services
http.ConfigureHttpOptions = options => configuration.GetSection("Http").Bind(options);
http.HttpEndpointAuthorizationHandler = sp => sp.GetRequiredService<AllowAnonymousHttpEndpointAuthorizationHandler>();
})
.UseSasTokens(sas => sas.DataProtectionProvider = sp => DataProtectionProvider.Create("Elsa Workflows"))
.UseEmail(email => email.ConfigureOptions = options => configuration.GetSection("Smtp").Bind(options));
// Initialize drop-ins.

View file

@ -4,6 +4,7 @@ using Elsa.Features.Attributes;
using Elsa.Features.Services;
using Elsa.Http.Features;
using Elsa.JavaScript.Features;
using Elsa.SasTokens.Features;
using Elsa.Workflows.Api.Serialization;
using Elsa.Workflows.Core.Contracts;
using Elsa.Workflows.Management.Features;
@ -18,6 +19,7 @@ namespace Elsa.Workflows.Api.Features;
[DependsOn(typeof(WorkflowManagementFeature))]
[DependsOn(typeof(JavaScriptFeature))]
[DependsOn(typeof(HttpFeature))]
[DependsOn(typeof(SasTokensFeature))]
public class WorkflowsApiFeature : FeatureBase
{
/// <inheritdoc />