From d874628f77b062f8662af5d4e4a99c4207c1d451 Mon Sep 17 00:00:00 2001 From: Stefan Benz <46600784+stebenz@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:28:59 +0100 Subject: [PATCH] fix: use username with external idp linking (#6846) Co-authored-by: Livio Spring --- .../auth/repository/eventsourcing/eventstore/auth_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/repository/eventsourcing/eventstore/auth_request.go b/internal/auth/repository/eventsourcing/eventstore/auth_request.go index 6e40aff730..56bbafa825 100644 --- a/internal/auth/repository/eventsourcing/eventstore/auth_request.go +++ b/internal/auth/repository/eventsourcing/eventstore/auth_request.go @@ -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 }