Compare commits
2
Commits
07e243964f
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2d2ac4607 | ||
|
|
565d7fbaff |
@@ -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();
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -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,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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user