12 lines
327 B
C#
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;
|
|
}
|