From 3bc9a6098613b35e26c7b2de691f9dc65d51930b Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Tue, 14 Nov 2023 11:42:39 +0200 Subject: [PATCH] fix: allow webauthn checks for users of other orgs (#6915) --- internal/command/session.go | 2 +- internal/command/session_webauhtn.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/command/session.go b/internal/command/session.go index 377cc99174..ec434818cf 100644 --- a/internal/command/session.go +++ b/internal/command/session.go @@ -267,7 +267,7 @@ func (s *SessionCommands) gethumanWriteModel(ctx context.Context) (*HumanWriteMo if s.sessionWriteModel.UserID == "" { return nil, caos_errs.ThrowPreconditionFailed(nil, "COMMAND-eeR2e", "Errors.User.UserIDMissing") } - humanWriteModel := NewHumanWriteModel(s.sessionWriteModel.UserID, s.sessionWriteModel.ResourceOwner) + humanWriteModel := NewHumanWriteModel(s.sessionWriteModel.UserID, "") err := s.eventstore.FilterToQueryReducer(ctx, humanWriteModel) if err != nil { return nil, err diff --git a/internal/command/session_webauhtn.go b/internal/command/session_webauhtn.go index 410481efbd..dd690a9e9b 100644 --- a/internal/command/session_webauhtn.go +++ b/internal/command/session_webauhtn.go @@ -29,9 +29,9 @@ func (s *SessionCommands) getHumanWebAuthNTokens(ctx context.Context, userVerifi } func (s *SessionCommands) getHumanWebAuthNTokenReadModel(ctx context.Context, userVerification domain.UserVerificationRequirement) (readModel HumanWebAuthNTokensReadModel, err error) { - readModel = NewHumanU2FTokensReadModel(s.sessionWriteModel.UserID, s.sessionWriteModel.ResourceOwner) + readModel = NewHumanU2FTokensReadModel(s.sessionWriteModel.UserID, "") if userVerification == domain.UserVerificationRequirementRequired { - readModel = NewHumanPasswordlessTokensReadModel(s.sessionWriteModel.UserID, s.sessionWriteModel.ResourceOwner) + readModel = NewHumanPasswordlessTokensReadModel(s.sessionWriteModel.UserID, "") } err = s.eventstore.FilterToQueryReducer(ctx, readModel) if err != nil {