elsa-core/src/modules/Elsa.Http/Handlers/AllowAnonymousHttpEndpointAuthorizationHandler.cs
Sipke Schoorstra 9b6c08bf38
Fix HTTP triggers not being updated (#3985)
* Fix triggers not being replaced

* XML comments and minor DI changes
2023-05-01 12:06:51 +02:00

13 lines
416 B
C#

using Elsa.Http.Contracts;
using Elsa.Http.Models;
namespace Elsa.Http.Handlers;
/// <summary>
/// A default <see cref="IHttpEndpointAuthorizationHandler"/> that allows all requests.
/// </summary>
public class AllowAnonymousHttpEndpointAuthorizationHandler : IHttpEndpointAuthorizationHandler
{
/// <inheritdoc />
public ValueTask<bool> AuthorizeAsync(AuthorizeHttpEndpointContext context) => new(true);
}