Skip to content
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

groups not present in ID Token when using GitLab #1129

Open
lucj opened this issue Aug 22, 2024 · 0 comments
Open

groups not present in ID Token when using GitLab #1129

lucj opened this issue Aug 22, 2024 · 0 comments
Labels
question Further information is requested

Comments

@lucj
Copy link

lucj commented Aug 22, 2024

Hi, I'm trying to use kubelogin with GitLab IDP. When I use the following command, I get an ID Token but there is no groups property in that one, only groups_direct.

kubectl oidc-login setup --oidc-issuer-url=https://gitlab.com --oidc-client-id=$CLIENT_ID --oidc-client-secret=$CLIENT_SECRET

groups_direct is the list of group a user is a direct member of, whereas groups is the list of groups a user is member of either directly or via inheritance. As describe in GitLab doc, groups is not in the ID Token but in the userinfo.

Any idea of the syntax I should use to claim the groups ?
Does this involve --oidc-extra-scope or --oidc-groups-claim parameters ? (I tested --oidc-extra-scope with groups, userinfo/groups, ... but it doesn't work)

@lucj lucj added the question Further information is requested label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant