< Summary

Information
Class: Elsa.ExternalAuthentication.Models.PublicBrokerError
Assembly: Elsa.ExternalAuthentication
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Models/BrokerError.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 23
Line coverage: 100%
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
get_Error()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.ExternalAuthentication/Models/BrokerError.cs

#LineLine coverage
 1namespace Elsa.ExternalAuthentication.Models;
 2
 3/// <summary>
 4/// The safe error categories that the external authentication broker may expose to a browser.
 5/// </summary>
 6public enum BrokerErrorCategory
 7{
 8    InvalidRequest,
 9    MethodUnavailable,
 10    AuthenticationFailed,
 11    IdentityUnlinked,
 12    FlowExpired,
 13    FlowChanged,
 14    AccessDenied,
 15    RateLimited,
 16    TemporarilyUnavailable,
 17    ServerError
 18}
 19
 20/// <summary>
 21/// A browser-safe broker error. Diagnostic details must be retained only in internal telemetry.
 22/// </summary>
 12823public sealed record PublicBrokerError(string Error, string Message, string CorrelationId);

Methods/Properties

get_Error()