Add filtering by teams to the GH identity provider
Created by: miveronese
Issue #34921 (closed)
This PR adds support for GitHub teams during the auth flow for the GH auth provider.
- It introduces a new config structure
allowOrgsMap
that allow customers to restrict user access based on GitHub OrgName > Team Name - It doesn't support subteams inheritance, which means that only members of the listed teams will be granted access.
Test plan
- New unit tests cases were added
- Manually tested with different GitHub orgs, teams and subteams
- Loom demo video: https://www.loom.com/share/de3c7d5e37fe4b578edc1e9f7a2f1c92