From 177cbde426f15e976d24a39a1047ba1d77c0a629 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Tue, 17 Dec 2024 20:45:24 +0100 Subject: [PATCH] Added more logs to debug an issue --- loadtest/user/userentity/actions.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/loadtest/user/userentity/actions.go b/loadtest/user/userentity/actions.go index 95c3ee262..27ec8b7d9 100644 --- a/loadtest/user/userentity/actions.go +++ b/loadtest/user/userentity/actions.go @@ -10,6 +10,7 @@ import ( "errors" "fmt" "io" + "log/slog" "net/http" "net/http/cookiejar" "net/url" @@ -155,6 +156,14 @@ func (ue *UserEntity) authIDP(action authIDPAction, provider string) error { queryParams.Add(string(matches[1]), string(matches[2])) } + slog.Warn( + "SAML form info", + slog.String("formURL", formURL), + slog.String("redirectURLMatcher_0", string(redirectURLMatcher[0])), + slog.String("redirectURLMatcher_1", string(redirectURLMatcher[1])), + slog.String("samlResponseBody", string(samlResponseBody)), + ) + samlForm, err := client.PostForm(formURL, queryParams) if err != nil { return fmt.Errorf("error while posting SAML form using client URL %s: %w", ue.client.URL, err)