Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix oidc driver
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 authored and vascoguita committed Oct 18, 2022
1 parent e56432d commit f760963
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/auth/manager/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ func (am *mgr) resolveUser(ctx context.Context, claims map[string]interface{}) e
)

uid, gid := am.getUserID(claims)
if uid != 0 && gid != 0 {
claims[am.c.UIDClaim] = uid
claims[am.c.GIDClaim] = gid
}

if len(am.oidcUsersMapping) > 0 {
claim = "username"
Expand Down

0 comments on commit f760963

Please sign in to comment.