From a8a2edadc27a77ab695599cca19a4956da1e0f4b Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Thu, 16 Mar 2023 14:14:08 +0100 Subject: [PATCH] fix: use correct resource owner in checkExternalUserLogin (#5457) --- .../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 0ea01c10f..6d806ef2a 100644 --- a/internal/auth/repository/eventsourcing/eventstore/auth_request.go +++ b/internal/auth/repository/eventsourcing/eventstore/auth_request.go @@ -858,7 +858,7 @@ func (repo *AuthRequestRepo) checkExternalUserLogin(ctx context.Context, request idQuery, externalIDQuery, } if request.RequestedOrgID != "" { - orgIDQuery, err := query.NewIDPUserLinksResourceOwnerSearchQuery(idpConfigID) + orgIDQuery, err := query.NewIDPUserLinksResourceOwnerSearchQuery(request.RequestedOrgID) if err != nil { return err }