< Summary

Information
Class: Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Models.ExternalAuthenticationConnectionScope
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ExternalAuthentication/Connections/Models/ExternalAuthenticationConnection.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 100
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
get_Kind()100%210%
get_TenantId()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ExternalAuthentication/Connections/Models/ExternalAuthenticationConnection.cs

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Models;
 4
 5/// <summary>
 6/// An external authentication connection exposed by the management API.
 7/// </summary>
 8public sealed class ExternalAuthenticationConnection
 9{
 10    public string Id { get; set; } = "";
 11    public string Key { get; set; } = "";
 12    public string Source { get; set; } = "";
 13    public ExternalAuthenticationConnectionScope Scope { get; set; } = new();
 14    public string AdapterType { get; set; } = "";
 15    public Uri? CallbackUri { get; set; }
 16    public Uri? PreviewCallbackUri { get; set; }
 17    public int AdapterSettingsVersion { get; set; }
 18    public JsonElement AdapterSettings { get; set; }
 19    public Dictionary<string, ExternalAuthenticationSecretBindingState> SecretBindings { get; set; } = new(StringCompare
 20    public string DisplayName { get; set; } = "";
 21    public string? IconId { get; set; }
 22    public int Order { get; set; }
 23    public bool IsPreferred { get; set; }
 24    public bool OverridesConfigurationConnection { get; set; }
 25    public bool CanCreateOverride { get; set; }
 26    public bool CanPromoteToConfigurationOverride { get; set; }
 27    public bool EnabledIntent { get; set; }
 28    public bool EffectivelyEnabled { get; set; }
 29    public string Validity { get; set; } = "";
 30    public bool Shadowed { get; set; }
 31    public ExternalAuthenticationConnectionReference? ShadowedBy { get; set; }
 32    public ICollection<ExternalAuthenticationConnectionReference> Shadows { get; set; } = [];
 33    public bool Archived { get; set; }
 34    public ExternalAuthenticationPolicySelection? UnlinkedPolicy { get; set; }
 35    public ICollection<ExternalAuthenticationGrantSourceSelection> PermissionGrantSources { get; set; } = [];
 36    public ExternalAuthenticationClaimProjection ClaimProjection { get; set; } = new();
 37    public string UpstreamLogoutMode { get; set; } = "disabled";
 38    public long Revision { get; set; }
 39    public string MaterialRevision { get; set; } = "";
 40    public ExternalAuthenticationConnectionObservation? LatestObservation { get; set; }
 41}
 42
 43/// <summary>
 44/// Identifies a connection that participates in an effective/shadowed relationship.
 45/// </summary>
 46public sealed class ExternalAuthenticationConnectionReference
 47{
 48    public string Id { get; set; } = "";
 49    public string DisplayName { get; set; } = "";
 50    public string Source { get; set; } = "";
 51}
 52
 53public sealed class ExternalAuthenticationConnectionScope
 54{
 055    public string Kind { get; set; } = "host";
 056    public string? TenantId { get; set; }
 57}
 58
 59public sealed class ExternalAuthenticationSecretBindingState
 60{
 61    public string Ownership { get; set; } = "";
 62    public string? ResolverType { get; set; }
 63    public string? Reference { get; set; }
 64    public bool IsConfigured { get; set; }
 65    public bool IsResolvable { get; set; }
 66}
 67
 68public sealed class ExternalAuthenticationPolicySelection
 69{
 70    public string Type { get; set; } = "";
 71    public int SettingsVersion { get; set; }
 72    public JsonElement Settings { get; set; }
 73}
 74
 75public sealed class ExternalAuthenticationGrantSourceSelection
 76{
 77    public string Type { get; set; } = "";
 78    public int SettingsVersion { get; set; }
 79    public JsonElement Settings { get; set; }
 80    public int Order { get; set; }
 81}
 82
 83public sealed class ExternalAuthenticationClaimProjection
 84{
 85    public ICollection<string> AllowedClaimTypes { get; set; } = [];
 86    public ICollection<string> RedactedClaimTypes { get; set; } = [];
 87    public int MaximumClaimCount { get; set; }
 88    public int MaximumValueLength { get; set; }
 89    public int MaximumTotalBytes { get; set; }
 90}
 91
 92public sealed class ExternalAuthenticationConnectionObservation
 93{
 94    public string Status { get; set; } = "";
 95    public DateTimeOffset ObservedAt { get; set; }
 96    public string TestedMaterialRevision { get; set; } = "";
 97    public bool IsStale { get; set; }
 98    public string Category { get; set; } = "";
 99    public string Summary { get; set; } = "";
 100}

Methods/Properties

get_Kind()
get_TenantId()