This commit is contained in:
2026-10-14 17:33:24 +03:30
parent 4d2193c3b9
commit 8bbd047e93
6 changed files with 49 additions and 254 deletions
@@ -429,10 +429,12 @@ namespace xIds.Providers
//
// Here we Have to Parse Allowed Ips and Scopes ...
var allowedIps = (keyModel.AllowedIPs ?? string.Empty)
.ParseListString<string>();
var allowedScopes = (keyModel.AllowedScopes ?? string.Empty)
.FromJSON<IEnumerable<string>>();
var allowedIps = keyModel.AllowedIPs.IsNullOrEmpty()
? []
: keyModel.AllowedIPs.ParseListString<string>();
var allowedScopes = keyModel.AllowedScopes.IsNullOrEmpty()
? []
: keyModel.AllowedScopes.FromJSON<IEnumerable<string>>();
result.Scopes = [.. allowedScopes];
//