< Summary

Information
Class: ProjectTemplate.Web.Authentication.Claims.ApplicationClaimsTransformationOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Claims/ApplicationClaimsTransformationOptions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 28
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_Enabled()100%11100%
get_RemoveOriginalClaims()100%11100%
get_DefaultMappings()100%11100%
get_ProviderMappings()100%11100%
.ctor()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Claims/ApplicationClaimsTransformationOptions.cs

#LineLine coverage
 1namespace ProjectTemplate.Web.Authentication.Claims;
 2
 3/// <summary>
 4/// Represents application claims transformation options.
 5/// </summary>
 6public sealed class ApplicationClaimsTransformationOptions
 7{
 8    /// <summary>
 9    /// Gets or sets a value indicating whether the feature is enabled.
 10    /// </summary>
 53611    public bool Enabled { get; set; } = true;
 12
 13    /// <summary>
 14    /// Gets or sets a value indicating whether the original claims should be removed after processing.
 15    /// </summary>
 15816    public bool RemoveOriginalClaims { get; set; }
 17
 18    /// <summary>
 19    /// Gets or sets the default claim mappings used when no provider-specific mapping is configured.
 20    /// </summary>
 52621    public ApplicationClaimMappingOptions DefaultMappings { get; set; } = new();
 22
 23    /// <summary>
 24    /// Gets or sets provider-specific claim mappings keyed by authentication provider scheme or authentication type.
 25    /// </summary>
 2826    public Dictionary<string, ApplicationClaimMappingOptions> ProviderMappings { get; set; } =
 50227        new(StringComparer.OrdinalIgnoreCase);
 28}