Commit Graph

4 Commits

Author SHA1 Message Date
Leonardo Mosquera 0df66c9afa
Extract allowedByWhiteList for unit testability, and add tests 2023-12-20 16:50:57 -03:00
Leonardo Mosquera 12d537b902
Add --whitelist-prefix option to allowlist a path prefix
The existing --whitelist option only allows a fixed string; this one
does a prefix match instead.
2023-12-20 15:56:35 -03:00
Sam Saffron f2123554cf FEATURE: add support for allowGroups setting
This new setting allows you to add a list of comma delimited groups to
the allow list.

Previous to this change auth proxy was able to authenticate admins OR
all users on the site, without any fidelity of allowing specific groups.

This also refactors the tests somewhat and adds a bunch of integration
tests to ensure the new setting is properly respected.

Co-authored-by: Saj Goonatilleke <saj@discourse.org>
2020-12-16 15:43:35 +11:00
Saj Goonatilleke bdc39cee65 Fix tests 2019-05-15 17:44:44 +10:00