Skip to content

Add support for Gitlab groups and subgroups

Warren Gifford requested to merge mv/support-gitlab-groups into main

Created by: miveronese

#34922 (closed)

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.

Merge request reports

Loading