Files
mxaccessgw/src/MxGateway.Server/Security/Authentication/ApiKeyIdentity.cs
T
2026-04-29 13:37:00 -04:00

12 lines
327 B
C#

namespace MxGateway.Server.Security.Authentication;
public sealed record ApiKeyIdentity(
string KeyId,
string KeyPrefix,
string DisplayName,
IReadOnlySet<string> Scopes,
ApiKeyConstraints? Constraints = null)
{
public ApiKeyConstraints EffectiveConstraints => Constraints ?? ApiKeyConstraints.Empty;
}