< Summary

Information
Class: Elsa.Identity.Options.AdminApiKeyOptions
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Options/AdminApiKeyOptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
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_ApiKey()100%11100%
get_OwnerName()100%11100%
get_Permissions()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Options/AdminApiKeyOptions.cs

#LineLine coverage
 1namespace Elsa.Identity.Options;
 2
 3/// <summary>
 4/// Options for the built-in admin API key provider.
 5/// </summary>
 6public class AdminApiKeyOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the API key to accept. Leave empty to disable the provider.
 10    /// </summary>
 60911    public string ApiKey { get; set; } = "";
 12
 13    /// <summary>
 14    /// Gets or sets the owner name assigned to the API key identity.
 15    /// </summary>
 30416    public string OwnerName { get; set; } = "admin";
 17
 18    /// <summary>
 19    /// Gets or sets the permissions assigned to the API key identity.
 20    /// </summary>
 30421    public ICollection<string> Permissions { get; set; } = ["*"];
 22}