@@ -8,8 +8,7 @@ When a client redeems a refresh token through dex, dex will re-query GitHub to u
...
@@ -8,8 +8,7 @@ When a client redeems a refresh token through dex, dex will re-query GitHub to u
## Caveats
## Caveats
* The GitHub API calls dex uses requires a user to have their organization membership visibility set to public. This can be done on the ["request access from org" page][github-request-org-access] which GitHub will skip if the client app is an existing authorized application. The current workaround is as follows: the user should log into their GitHub account, go to Settings -> Authorized OAuth Apps, click 'Revoke' to revoke the application's grant, and restart the dex login process. This will force the "request access from org" page to be shown, allowing the user to request that the organization owner make their membership public.
* A user must explicitly [request][github-request-org-access] an [organization][github-orgs] give dex [resource access][github-approve-org-access]. Dex will not have the correct permissions to determine if the user is in that organization otherwise, and the user will not be able to log in. This request mechanism is a feature of the GitHub API.
* Note: GitHub [organizations][github-orgs] are different from GitHub [teams][github-teams]
## Configuration
## Configuration
...
@@ -50,7 +49,7 @@ connectors:
...
@@ -50,7 +49,7 @@ connectors:
-name:my-organization-with-teams
-name:my-organization-with-teams
# A white list of teams. Only include group claims for these teams.
# A white list of teams. Only include group claims for these teams.
teams:
teams:
-read-team
-red-team
-blue-team
-blue-team
```
```
...
@@ -93,7 +92,7 @@ connectors:
...
@@ -93,7 +92,7 @@ connectors:
-name:my-organization-with-teams
-name:my-organization-with-teams
# A white list of teams. Only include group claims for these teams.
# A white list of teams. Only include group claims for these teams.
teams:
teams:
-read-team
-red-team
-blue-team
-blue-team
# Required ONLY for GitHub Enterprise.
# Required ONLY for GitHub Enterprise.
# This is the Hostname of the GitHub Enterprise account listed on the
# This is the Hostname of the GitHub Enterprise account listed on the