Skip to content

Commit d923d42

Browse files
authored
Merge pull request #6 from stephanpieterse/master
Additional split on SAMLResponse split
2 parents 768a597 + 77ad601 commit d923d42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/web/web.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func (web *Web) GetSamlLogin(conf config.SamlConfig) (string, error) {
7575
wait()
7676

7777
saml := strings.Split(page.MustElement(`body`).MustText(), "SAMLResponse=")[1]
78+
saml = strings.Split(saml, "&")[0]
7879
return nurl.QueryUnescape(saml)
7980

8081
}
@@ -95,7 +96,7 @@ func (web *Web) ClearCache() error {
9596
return nil
9697
}
9798

98-
//checkRodProcess gets a list running process
99+
// checkRodProcess gets a list running process
99100
// kills any hanging rod browser process from any previous improprely closed sessions
100101
func checkRodProcess() error {
101102
pids := make([]int, 0)

0 commit comments

Comments
 (0)