@@ -961,11 +961,11 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
961
961
962
962
// The 'name' is an optional property in Coder. If not specified,
963
963
// it will be left blank.
964
- var fullName string
965
- fullNameRaw , ok := mergedClaims [api .OIDCConfig .NameField ]
964
+ var name string
965
+ nameRaw , ok := mergedClaims [api .OIDCConfig .NameField ]
966
966
if ok {
967
- fullName , _ = fullNameRaw .(string )
968
- fullName = httpapi .NormalizeRealUsername (fullName )
967
+ name , _ = nameRaw .(string )
968
+ name = httpapi .NormalizeRealUsername (name )
969
969
}
970
970
971
971
var picture string
@@ -974,7 +974,7 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
974
974
picture , _ = pictureRaw .(string )
975
975
}
976
976
977
- ctx = slog .With (ctx , slog .F ("email" , email ), slog .F ("username" , username ), slog .F ("name" , fullName ))
977
+ ctx = slog .With (ctx , slog .F ("email" , email ), slog .F ("username" , username ), slog .F ("name" , name ))
978
978
usingGroups , groups , groupErr := api .oidcGroups (ctx , mergedClaims )
979
979
if groupErr != nil {
980
980
groupErr .Write (rw , r )
@@ -1012,7 +1012,7 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
1012
1012
AllowSignups : api .OIDCConfig .AllowSignups ,
1013
1013
Email : email ,
1014
1014
Username : username ,
1015
- Name : fullName ,
1015
+ Name : name ,
1016
1016
AvatarURL : picture ,
1017
1017
UsingRoles : api .OIDCConfig .RoleSyncEnabled (),
1018
1018
Roles : roles ,
0 commit comments