Compare commits

...
2 Commits
Author SHA1 Message Date
saherelm bcb6d7a135 last ... 2026-10-09 23:17:38 +03:30
saherelm d2d2ac4607 last ... 2026-10-09 19:35:12 +03:30
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ namespace xIdentityModels.Extensions
//
var result =
!source.IsNullOrDefault() &&
!source.ApplicationId.IsValidIntId() &&
source.ApplicationId.IsValidIntId() &&
!source.KeyHash.IsNullOrEmpty();
//
+6
View File
@@ -15,6 +15,12 @@ namespace xIdentityModels.Models
[Required]
public int ApplicationId { get; set; }
/// <summary>
/// ApiKey ...
/// </summary>
[Required]
public string Key { get; set; }
/// <summary>
/// Hash ...
/// SHA256 of ApiKey ...
+1 -2
View File
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
namespace xIdentityModels.Models
@@ -9,7 +8,7 @@ namespace xIdentityModels.Models
public class XCreateApiKeyRequest
{
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> AllowedIPs {get; set;} = null;
}