-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github: Groups not getting loaded when no org is specified in config #1102
Comments
Groups are only returned for orgs specified in the connector config.
https://github.com/coreos/dex/blob/master/Documentation/github-connector.md#configuration |
I was confused by the following code:
|
can you paste an example config (without your tokens)? |
issuer: https://***/dex
oauth2:
skipApprovalScreen: true
responseTypes:
- code
- token
- id_token
storage:
type: kubernetes
config:
inCluster: true
web:
http: 0.0.0.0:5556
connectors:
- config:
clientID: ***
clientSecret: ***
issuer: https://accounts.google.com
redirectURI: https://***/dex/callback
id: google
name: Google
type: oidc
- config:
clientID: ***
clientSecret: ***
redirectURI: https://***/dex/callback
id: github
name: GitHub
type: github
staticClients:
- RedirectURIs:
- https://***
- http://localhost:8000
id: myclient
name: myclient
secret: ***
|
I have the same problem with version
|
I just submitted a PR for this #1184. We're currently returning groups in the form: [
"org-1:team-1",
"org-1:team-2",
"org-1:team-3",
"org-2:team-4",
"org-3"
] However I'm wondering if this is a better format: [
"org-1",
"org-1:team-1",
"org-1:team-2",
"org-1:team-3",
"org-2",
"org-2:team-4",
"org-3"
] It seems like the second format would make it easier to match groups at the org level, even if teams exist. Thoughts? |
Add config to explicitly enable loading all github groups Follow-up for #1102.
…oups Add config to explicitly enable loading all github groups Follow-up for dexidp#1102.
Dex is not fetching the groups when no org is specified in the config.
The groups scope is specified
&scope=openid%20email%20profile%20groups
According to the Github Oauth Application in my private profile dex has the permission to read them.
Am i missing something here?
Version: 2.7.1
The text was updated successfully, but these errors were encountered: