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