fix: use username with external idp linking (#6846)

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Stefan Benz
2023-11-02 11:28:59 +00:00
committed by GitHub
co-authored by Livio Spring
parent f84eb19637
commit d874628f77
@@ -1586,7 +1586,7 @@ func linkExternalIDPs(ctx context.Context, userCommandProvider userCommandProvid
ObjectRoot: es_models.ObjectRoot{AggregateID: request.UserID},
IDPConfigID: linkingUser.IDPConfigID,
ExternalUserID: linkingUser.ExternalUserID,
DisplayName: linkingUser.DisplayName,
DisplayName: linkingUser.PreferredUsername,
}
externalIDPs[i] = externalIDP
}