GroupClaimName not used to map user to team #8887

Closed
opened 2025-11-02 08:22:07 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Morriz on GitHub (Apr 29, 2022).

Description

Hi, I consider this a bug, but you decide:

According to this merged PR https://github.com/go-gitea/gitea/pull/16766/files#diff-190f875ffe99e881bafbd2fae54d5099c9d52bf13bd7c9a3ba434323e82078af it would now be possible to map content of OIDC claim name to teams, so that setting GroupClaimName to "groups", and seeing a JWT with "groups" claim containing ["bla"], would try to add the user to team bla if it exists.

The adminGroup is correctly identified, so the parts are already working I think.

Gitea Version

1.16.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

helm chart with image running version mentioned above.

Database

PostgreSQL

Originally created by @Morriz on GitHub (Apr 29, 2022). ### Description Hi, I consider this a bug, but you decide: According to this merged PR https://github.com/go-gitea/gitea/pull/16766/files#diff-190f875ffe99e881bafbd2fae54d5099c9d52bf13bd7c9a3ba434323e82078af it would now be possible to map content of OIDC claim name to teams, so that setting `GroupClaimName` to "groups", and seeing a JWT with "groups" claim containing ["bla"], would try to add the user to team bla if it exists. The `adminGroup` is correctly identified, so the parts are already working I think. ### Gitea Version 1.16.6 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? helm chart with image running version mentioned above. ### Database PostgreSQL
GiteaMirror added the type/feature label 2025-11-02 08:22:07 -06:00
Author
Owner

@Morriz commented on GitHub (Apr 29, 2022):

reference post from @zeripath: https://github.com/go-gitea/gitea/issues/10016#issuecomment-903123957

@Morriz commented on GitHub (Apr 29, 2022): reference post from @zeripath: https://github.com/go-gitea/gitea/issues/10016#issuecomment-903123957
Author
Owner

@zeripath commented on GitHub (Apr 29, 2022):

It never promised to do this.

@zeripath commented on GitHub (Apr 29, 2022): It never promised to do this.
Author
Owner

@Morriz commented on GitHub (Apr 29, 2022):

Ah, to me it gave that impression when I saw those options. Would it be hard to map the groups claim to teams? Should this be converted into a feature request then?

@Morriz commented on GitHub (Apr 29, 2022): Ah, to me it gave that impression when I saw those options. Would it be hard to map the groups claim to teams? Should this be converted into a feature request then?
Author
Owner

@KN4CK3R commented on GitHub (Oct 13, 2022):

Implemented this in #21441, please test it.

@KN4CK3R commented on GitHub (Oct 13, 2022): Implemented this in #21441, please test it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8887