Compare commits

..
2 Commits
Author SHA1 Message Date
saherelm d2d2ac4607 last ... 2026-10-09 19:35:12 +03:30
saherelm 565d7fbaff last ... 2026-10-09 14:21:07 +03:30
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ namespace xIdentityModels.Extensions
// //
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.ApplicationId.IsValidIntId() && source.ApplicationId.IsValidIntId() &&
!source.KeyHash.IsNullOrEmpty(); !source.KeyHash.IsNullOrEmpty();
// //
+9
View File
@@ -0,0 +1,9 @@
namespace xIdentityModels.Models
{
public class XApiKeyValidationRequest
{
public string ApiKey { get; set; }
public string ClientIP { get; set; }
public string RequiredScope { get; set; } = null;
}
}
+1 -2
View File
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace xIdentityModels.Models namespace xIdentityModels.Models
@@ -9,7 +8,7 @@ namespace xIdentityModels.Models
public class XCreateApiKeyRequest public class XCreateApiKeyRequest
{ {
public int? RateLimit {get; set;} = null; public int? RateLimit {get; set;} = null;
public TimeSpan? Expiration {get; set;} = null; public int? ExpirationMinutes {get; set;} = null;
public IEnumerable<string> Scopes {get; set;} = null; public IEnumerable<string> Scopes {get; set;} = null;
public IEnumerable<string> AllowedIPs {get; set;} = null; public IEnumerable<string> AllowedIPs {get; set;} = null;
} }