last ...
This commit is contained in:
@@ -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];
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user