Files
oauth2-proxy/providers
Br1anandJan Larwig 779cc5f350 fix: filter empty strings from allowed groups (#3365)
* fix: filter empty strings from allowed groups

When parsing allowed groups from configuration (e.g., via environment
variable OAUTH2_PROXY_ALLOWED_GROUPS), viper may include empty
strings in the parsed slice when trailing commas are present
(e.g., "group2," becomes ["group2", ""]).

The setAllowedGroups function now filters out empty strings before
adding them to the AllowedGroups map, ensuring that only valid group
names are checked during authorization.

Fixes #3123

Signed-off-by: Br1an67 <932039080@qq.com>

* refactor: minor change

Signed-off-by: Jan Larwig <jan@larwig.com>

* doc: add changelog entry for 3365

Signed-off-by: Jan Larwig <jan@larwig.com>

---------

Signed-off-by: Br1an67 <932039080@qq.com>
Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
2026-03-18 22:44:11 +08:00
..
2025-11-16 22:38:59 +01:00
2024-03-04 01:42:00 +01:00
2025-08-12 17:41:45 +02:00
2022-10-21 11:57:51 +01:00
2025-08-19 08:40:36 +02:00
2024-01-22 13:39:53 +00:00
2024-01-22 13:39:53 +00:00
2022-10-21 11:57:51 +01:00
2024-03-04 01:42:00 +01:00
2024-01-22 13:39:53 +00:00