Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fchimpan committed Apr 1, 2024
1 parent 7b3166c commit cd9f4fc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions idp/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ package idp
import (
"context"
"fmt"
"net/url"
"os"

"github.com/chromedp/cdproto/network"
"github.com/chromedp/chromedp"
"github.com/cybozu/assam/aws"
"github.com/pkg/errors"
"net/url"
"os"
)

const (
Expand Down Expand Up @@ -107,7 +108,12 @@ func (a *Azure) fetchSAMLResponse(ctx context.Context) (string, error) {
continue
}

form, err := url.ParseQuery(req.Request.PostData)
var postData string
for p := range req.Request.PostDataEntries {
postData += req.Request.PostDataEntries[p].Bytes
}

form, err := url.ParseQuery(postData)
if err != nil {
return "", err
}
Expand Down

0 comments on commit cd9f4fc

Please sign in to comment.