Skip to content

Commit

Permalink
Added more logs to debug an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Dec 17, 2024
1 parent e409801 commit 177cbde
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions loadtest/user/userentity/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net/http"
"net/http/cookiejar"
"net/url"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 177cbde

Please sign in to comment.