Module: Verikloak::SkipPathMatcher
- Included in:
- Middleware
- Defined in:
- lib/verikloak/skip_path_matcher.rb
Overview
Reusable mixin for skip-path normalization and matching.
Include this module and call #compile_skip_paths during initialization, then call #skip? per-request to check whether the path should bypass processing.
Supported patterns:
-
‘’/‘` — matches only the root path
-
‘’/foo’‘ — exact-match only (matches `/foo` but not `/foo/…`)
-
‘’/foo/*‘` — prefix match (matches `/foo` and any nested path under it)
-
‘Regexp` — matched against the normalized path via `Regexp#match?`