Skip to content

Commit

Permalink
fix oidc driver
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 6, 2022
1 parent e148331 commit f9d850d
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 f9d850d

Please sign in to comment.