< Summary

Information
Class: Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Responses.ExternalAuthenticationPermissionGrant
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ExternalAuthentication/Connections/Responses/ExternalAuthenticationConnectionResponses.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 60
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_Permission()100%210%
get_SourceType()100%210%
get_SourceReference()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Models;
 2
 3namespace Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Responses;
 4
 5public sealed class ListExternalAuthenticationConnectionsResponse
 6{
 7    public ICollection<ExternalAuthenticationConnection> Items { get; set; } = [];
 8    public string? NextCursor { get; set; }
 9}
 10
 11public sealed class ValidateExternalAuthenticationConnectionResponse
 12{
 13    public bool Valid { get; set; }
 14    public ICollection<ExternalAuthenticationConnectionValidationError> Errors { get; set; } = [];
 15    public ICollection<string> Warnings { get; set; } = [];
 16}
 17
 18public sealed class ExternalAuthenticationConnectionValidationError
 19{
 20    public string Field { get; set; } = "";
 21    public string Code { get; set; } = "";
 22    public string Message { get; set; } = "";
 23}
 24
 25public sealed class TestExternalAuthenticationConnectionResponse
 26{
 27    public string Status { get; set; } = "";
 28    public DateTimeOffset ObservedAt { get; set; }
 29    public string TestedMaterialRevision { get; set; } = "";
 30    public string Category { get; set; } = "";
 31    public string Summary { get; set; } = "";
 32    public ICollection<string> Warnings { get; set; } = [];
 33    public TimeSpan Duration { get; set; }
 34    public string CorrelationId { get; set; } = "";
 35}
 36
 37public sealed class InitiateExternalAuthenticationPreviewResponse
 38{
 39    public string NavigationUrl { get; set; } = "";
 40    public DateTimeOffset ExpiresAt { get; set; }
 41}
 42
 43public sealed class ExternalAuthenticationPreviewResult
 44{
 45    public string ConnectionId { get; set; } = "";
 46    public string MaterialRevision { get; set; } = "";
 47    public string Issuer { get; set; } = "";
 48    public string MaskedSubject { get; set; } = "";
 49    public Dictionary<string, ICollection<string>> ProjectedClaims { get; set; } = new(StringComparer.Ordinal);
 50    public string PolicyDecision { get; set; } = "";
 51    public ICollection<ExternalAuthenticationPermissionGrant> PermissionProjection { get; set; } = [];
 52    public ICollection<string> Warnings { get; set; } = [];
 53}
 54
 55public sealed class ExternalAuthenticationPermissionGrant
 56{
 057    public string Permission { get; set; } = "";
 058    public string SourceType { get; set; } = "";
 059    public string SourceReference { get; set; } = "";
 60}