Skip to content

Commit 7ba6f2c

Browse files
committed
Add org/team configuration relevant urls to github enterprise sample config
1 parent f010e85 commit 7ba6f2c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config/config.yml_example_github_enterprise

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ vouch:
1515
# instead of setting specific domains you may prefer to allow all users...
1616
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at the configured provider
1717
# allowAllUsers: true
18+
# set teamWhitelist: to list of teams and/or GitHub organizations
19+
# When putting an organization id without a slash, it will allow all (public) members from the organization.
20+
# The client will try to read the private organization membership using the client credentials, if that's not possible
21+
# due to access restriction, it will try to evaluate the publicly visible membership.
22+
# Allowing members form a specific team can be configured by qualifying the team with the organization, separated by
23+
# a slash.
24+
# teamWhitelist:
25+
# - myOrg
26+
# - myOrg/myTeam
1827

1928
oauth:
2029
# create a new OAuth application at:
@@ -25,6 +34,10 @@ oauth:
2534
auth_url: https://githubenterprise.yoursite.com/login/oauth/authorize
2635
token_url: https://githubenterprise.yoursite.com/login/oauth/access_token
2736
user_info_url: https://githubenterprise.yoursite.com/api/v3/user?access_token=
37+
# relevant only if teamWhitelist is configured; colon-prefixed parts are parameters that
38+
# will be replaced with the respective values.
39+
user_team_url: https://githubenterprise.yoursite.com/api/v3/orgs/:org_id/teams/:team_slug/memberships/:username?access_token=
40+
user_org_url: https://githubenterprise.yoursite.com/api/v3/orgs/:org_id/members/:username?access_token=
2841
# these GitHub OAuth defaults are set for you..
2942
# scopes:
3043
# - user

0 commit comments

Comments
 (0)