< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Models/ApiKey.cs

#LineLine coverage
 1using System.Security.Claims;
 2using AspNetCore.Authentication.ApiKey;
 3
 4namespace Elsa.Identity.Models;
 5
 6/// <summary>
 7/// Represents a validated API key.
 8/// </summary>
 9/// <param name="Key">API Key</param>
 10/// <param name="OwnerName">Owner of the API Key. It can be username or any other key owner name.</param>
 11/// <param name="Claims">Optional list of claims to be sent back with the authentication request.</param>
 94412public record ApiKey(string Key, string OwnerName, IReadOnlyCollection<Claim> Claims) : IApiKey;

Methods/Properties

get_Key()