Add support for Gitlab groups and subgroups
Created by: miveronese
This PR adds support to restrict user login based on a list of allowed GitLab groups or subgroups that can be informed in the configuration for this auth provider.
Here's how the new field, added under GitLabAuthProvider, looks like:
"allowGroups": {
"description": "...",
"default": [],
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"examples":[["group", "group/subgroup", "group/subgroup/subgroup"]]
}
Test Plan
New unit tests were added and some existing tests were updated to cover the changes in this PR.