Merge pull request #1349 from alexmt/1102-config-to-load-all-groups

Add config to explicitly enable loading all github groups

Follow-up for #1102.
This commit is contained in:
Stephan Renatus
2018-11-20 15:15:25 +01:00
committed by GitHub
3 changed files with 23 additions and 5 deletions

View File

@@ -45,8 +45,8 @@ connectors:
# If orgs are specified in the config then user MUST be a member of at least one of the specified orgs to
# authenticate with dex.
#
# If neither 'org' nor 'orgs' are specified in the config then user authenticate with ALL user's Github groups.
# Typical use case for this setup:
# If neither 'org' nor 'orgs' are specified in the config and 'loadAllGroups' setting set to true then user
# authenticate with ALL user's Github groups. Typical use case for this setup:
# provide read-only access to everyone and give full permissions if user has 'my-organization:admins-team' group claim.
orgs:
- name: my-organization
@@ -56,6 +56,8 @@ connectors:
teams:
- red-team
- blue-team
# Flag which indicates that all user groups and teams should be loaded.
loadAllGroups: false
# Optional choice between 'name' (default) or 'slug'.
#