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

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stefan Benz 2023-11-02 12:28:59 +01:00 committed by GitHub
parent f84eb19637
commit d874628f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}