< Summary

Information
Class: Elsa.ExternalAuthentication.Features.ExternalAuthenticationFeature
Assembly: Elsa.ExternalAuthentication
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Features/ExternalAuthenticationFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 27
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
.ctor(...)100%210%
get_ConfigureOptions()100%210%
Configure()100%210%
Apply()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Features/ExternalAuthenticationFeature.cs

#LineLine coverage
 1using Elsa.ExternalAuthentication.Options;
 2using Elsa.Common.Features;
 3using Elsa.Extensions;
 4using Elsa.Features.Abstractions;
 5using Elsa.Features.Attributes;
 6using Elsa.Features.Services;
 7using Microsoft.Extensions.DependencyInjection;
 8
 9namespace Elsa.ExternalAuthentication.Features;
 10
 11[DependsOn(typeof(SystemClockFeature))]
 012public sealed class ExternalAuthenticationFeature(IModule module) : FeatureBase(module)
 13{
 14    /// <summary>Configures deployment-owned broker clients, connections, security boundaries, and operations.</summary>
 015    public Action<ExternalAuthenticationOptions>? ConfigureOptions { get; set; }
 16
 17    public override void Configure()
 18    {
 019        Module.AddFastEndpointsAssembly<ExternalAuthenticationFeature>();
 020    }
 21
 22    public override void Apply()
 23    {
 024        Services.AddExternalAuthenticationServices(ConfigureOptions);
 025        Module.AddFastEndpointsFromModule();
 026    }
 27}