< Summary

Information
Class: Elsa.Http.Handlers.AllowAnonymousHttpEndpointAuthorizationHandler
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Handlers/AllowAnonymousHttpEndpointAuthorizationHandler.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 10
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
AuthorizeAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Handlers/AllowAnonymousHttpEndpointAuthorizationHandler.cs

#LineLine coverage
 1namespace Elsa.Http.Handlers;
 2
 3/// <summary>
 4/// A default <see cref="IHttpEndpointAuthorizationHandler"/> that allows all requests.
 5/// </summary>
 6public class AllowAnonymousHttpEndpointAuthorizationHandler : IHttpEndpointAuthorizationHandler
 7{
 8    /// <inheritdoc />
 09    public ValueTask<bool> AuthorizeAsync(AuthorizeHttpEndpointContext context) => new(true);
 10}