MapStore2
MapStore2 copied to clipboard
#7952 Added pathPattern property support into authenticationRules
Description
This PR provides minor modification to the functions that return authentication rule and authentication method based on URL and rule URL pattern. It adds "pathPattern" property that can be optionally defined for rule and it will be used as a second alternative way to match rule against passed URL.
Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines: https://github.com/geosolutions-it/MapStore2/blob/master/CONTRIBUTING.md
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
What kind of change does this PR introduce? (check one with "x", remove the others)
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [x] Other... Please describe: Small improvement
Issue
What is the current behavior? #7952
What is the new behavior? It's possible to define "pathPattern" for the rule that will me used to check for a match of "path" part of the URL.
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
- [ ] Yes, and I documented them in migration notes
- [x] No