Make SasTokens implicit dependency of Workflows API
SAS tokens are used by the Events/Trigger API endpoint.
This commit is contained in:
parent
e75e600910
commit
5dd6c85045
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Reference in a new issue