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/foobut not/foo/...)'/foo/*'— prefix match (matches/fooand any nested path under it)Regexp— matched against the normalized path viaRegexp#match?