last ...
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
namespace xIds.Configurations
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration settings for API Key management, including expiration, rate limiting, and audit logging.
|
||||
/// </summary>
|
||||
public class XApiKeyConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Default expiration in minutes (e.g., 43200 = 30 days)
|
||||
/// </summary>
|
||||
public int DefaultExpirationMinutes { get; set; } = 43200;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum allowed expiration in minutes (e.g., 525600 = 1 year)
|
||||
/// </summary>
|
||||
public int MaxExpirationMinutes { get; set; } = 525600;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum ApiKeys per Application
|
||||
/// </summary>
|
||||
public int MaxKeysPerApplication { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// Enable audit logging
|
||||
/// </summary>
|
||||
public bool EnableAuditLog { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Default rate limit (requests per minute)
|
||||
/// </summary>
|
||||
public int DefaultRateLimit { get; set; } = 60;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user