This commit is contained in:
2026-10-16 21:34:06 +03:30
parent be3fd31b4e
commit 6b648ede44
6 changed files with 80 additions and 31 deletions
@@ -512,13 +512,10 @@ namespace xIds.Providers
var isIpValid =
!allowedIps.HasChild() ||
allowedIps.Contains(clientIP);
var isScopeValid =
!allowedScopes.HasChild() ||
requiredScope.IsNullOrEmpty() ||
requiredScopes
.All(ts => allowedScopes
.Any(asc => asc.ToNormalString() == ts.ToNormalString()));
var isScopeIpValid =
var isScopeValid =
allowedScopes
.IsScopePassed(requiredScopes);
var isScopeIpValid =
isIpValid &&
isScopeValid
;