Closed nickmintel closed 5 years ago
Code calls
scopes = append(scopes, "openid", "profile", "email", "offline_access", "groups")
Should add this to the generated kubeconfig as well:
- name: ... user: auth-provider: config: client-id: ... client-secret: ... extra-scopes: openid,profile,email,offline_access,groups
Also, probably make these scopes configurable via the config rather than hardcoding them into the template.
Not sure this is possible since kubectl ignores extra-scopes anyway...hmm.
kubectl
https://github.com/kubernetes/kubernetes/blob/8b98e802eddb9f478ff7d991a2f72f60c165388a/staging/src/k8s.io/client-go/plugin/pkg/client/auth/oidc/oidc.go#L126-L129
Code calls
scopes = append(scopes, "openid", "profile", "email", "offline_access", "groups")
Should add this to the generated kubeconfig as well: