Skip to content

Commit 181e403

Browse files
committed
Update OIDC username claim candidate
1 parent 8f2d6d7 commit 181e403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest/api/authentication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func NewOIDCAuthenticator(ctx context.Context, opts *OIDCOptions) (*OIDCAuthenti
165165
})
166166
return &OIDCAuthenticator{
167167
Verifier: verifier,
168-
UsernameClaimCandidate: []string{"preferred_username", "name", "email"},
168+
UsernameClaimCandidate: []string{"name", "email"},
169169
EmailClaimCandidate: []string{"email"},
170170
GroupsClaimCandidate: []string{"groups", "roles"},
171171
EmailToUsername: func(email string) string {

0 commit comments

Comments
 (0)