globMatch
Variable: globMatch
constglobMatch: (value,pattern) =>boolean=iamGlobMatch
Defined in: packages/utils/src/glob.ts:73
Alias of iamGlobMatch for non-IAM callers (OAuth scopes)
Glob matching used by IAM for operation patterns, scope and the globMatch condition function
It replaces Casbin's minimatch-based globMatch: no brace expansion, no extglob, no character classes, so a
caller-controlled pattern cannot cost more than O(value × pattern). * and ? do not cross /.
Parameters
value
unknown
the value
pattern
unknown
the pattern
Returns
boolean
true when the value matches; false when either argument is not a string
Throws
Error when an argument exceeds the length limits: a failing condition refuses the call