< Summary

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

File(s)

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

#LineLine coverage
 1namespace ProjectTemplate.Web.Authentication.Claims;
 2
 3/// <summary>
 4/// Represents source claim mappings used to normalize provider-specific claims.
 5/// </summary>
 6public sealed class ApplicationClaimMappingOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the collection of claim type identifiers used to represent the subject in security tokens.
 10    /// </summary>
 11    /// <remarks>This collection typically includes standard claim types such as 'sub', 'subject', 'nameid',
 12    /// and the value of ClaimTypes.NameIdentifier. The identifiers are used to extract or assign the subject value when
 13    /// processing security tokens.</remarks>
 14    public ICollection<string> Subject { get; set; } =
 37215    [
 37216        "sub",
 37217        "subject",
 37218        "nameid",
 37219        System.Security.Claims.ClaimTypes.NameIdentifier
 37220    ];
 21
 22    /// <summary>
 23    /// Gets or sets the collection of claim type names used to identify a user's name.
 24    /// </summary>
 25    /// <remarks>This collection typically includes standard claim type identifiers such as "name",
 26    /// "display_name", and values from <see cref="System.Security.Claims.ClaimTypes"/>. The collection can be
 27    /// customized to support additional or alternative claim type names as needed.</remarks>
 28    public ICollection<string> Name { get; set; } =
 37229    [
 37230        "name",
 37231        "display_name",
 37232        System.Security.Claims.ClaimTypes.Name
 37233    ];
 34
 35    /// <summary>
 36    /// Gets or sets the collection of claim type identifiers used to represent an email address.
 37    /// </summary>
 38    /// <remarks>This collection typically includes standard claim type names such as "email", "emailaddress",
 39    /// and the value of <see cref="System.Security.Claims.ClaimTypes.Email"/>. Modify this collection to support custom
 40    /// or additional claim type identifiers as needed.</remarks>
 41    public ICollection<string> Email { get; set; } =
 37242    [
 37243        "email",
 37244        "emailaddress",
 37245        System.Security.Claims.ClaimTypes.Email
 37246    ];
 47
 48    /// <summary>
 49    /// Gets or sets the collection of claim type names that represent user roles.
 50    /// </summary>
 51    /// <remarks>This collection typically includes standard claim type names such as "role", "roles", and the
 52    /// value of <see cref="System.Security.Claims.ClaimTypes.Role"/>. Modify this collection to support custom or
 53    /// additional role claim types as needed.</remarks>
 54    public ICollection<string> Role { get; set; } =
 37255    [
 37256        "role",
 37257        "roles",
 37258        System.Security.Claims.ClaimTypes.Role
 37259    ];
 60
 61    /// <summary>
 62    /// Gets or sets the collection of group identifiers associated with the entity.
 63    /// </summary>
 64    public ICollection<string> Group { get; set; } =
 37265    [
 37266        "group",
 37267        "groups",
 37268        "memberOf"
 37269    ];
 70
 71    /// <summary>
 72    /// Gets or sets the collection of permission identifiers associated with the current context.
 73    /// </summary>
 74    public ICollection<string> Permission { get; set; } =
 37275    [
 37276        "permission",
 37277        "permissions",
 37278        "scope",
 37279        "scp"
 37280    ];
 81}

Methods/Properties

.ctor()