namespace ZB.MOM.WW.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;
}
