< Summary

Information
Class: Elsa.Identity.Endpoints.Me.Permissions.Response
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Endpoints/Me/Permissions/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 16
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_Grants()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Endpoints/Me/Permissions/Models.cs

#LineLine coverage
 1namespace Elsa.Identity.Endpoints.Me.Permissions;
 2
 3/// <summary>The calling principal's effective grants for the current tenant context.</summary>
 4/// <param name="Grants">
 5/// Every registered resource, including ones the caller cannot access, which carry an empty verb list.
 6/// Present so a client can distinguish "explicitly denied" from "unknown to this server" and drive
 7/// rendering safely from a single call.
 8/// </param>
 09public record Response(IReadOnlyCollection<ResourceGrant> Grants);
 10
 11/// <summary>What the caller may do with one resource.</summary>
 12/// <param name="Verbs">
 13/// Resolved to concrete verbs rather than echoing a wildcard, so a client needs no matching logic: the
 14/// check is a containment test.
 15/// </param>
 16public record ResourceGrant(string Resource, IReadOnlyCollection<string> Verbs);

Methods/Properties

get_Grants()