From 8acb15a7fd81eb090b09aebcb23fd98912dff5ad Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 26 Aug 2021 21:14:19 +0200 Subject: [PATCH] outpost: fix flow executor not sending password for identification stage Signed-off-by: Jens Langhammer --- internal/outpost/flow.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/outpost/flow.go b/internal/outpost/flow.go index 370e710e7..2bc444751 100644 --- a/internal/outpost/flow.go +++ b/internal/outpost/flow.go @@ -152,7 +152,9 @@ func (fe *FlowExecutor) solveFlowChallenge(depth int) (bool, error) { responseReq := fe.api.FlowsApi.FlowsExecutorSolve(scsp.Context(), fe.flowSlug).Query(fe.Params.Encode()) switch ch.GetComponent() { case string(StageIdentification): - responseReq = responseReq.FlowChallengeResponseRequest(api.IdentificationChallengeResponseRequestAsFlowChallengeResponseRequest(api.NewIdentificationChallengeResponseRequest(fe.getAnswer(StageIdentification)))) + r := api.NewIdentificationChallengeResponseRequest(fe.getAnswer(StageIdentification)) + r.SetPassword(fe.getAnswer(StagePassword)) + responseReq = responseReq.FlowChallengeResponseRequest(api.IdentificationChallengeResponseRequestAsFlowChallengeResponseRequest(r)) case string(StagePassword): responseReq = responseReq.FlowChallengeResponseRequest(api.PasswordChallengeResponseRequestAsFlowChallengeResponseRequest(api.NewPasswordChallengeResponseRequest(fe.getAnswer(StagePassword)))) case string(StageAuthenticatorValidate):