Skip to content

Commit

Permalink
Merge pull request #889 from JohnPaton/patch-1
Browse files Browse the repository at this point in the history
Allow double quotes around stateToken
  • Loading branch information
wolfeidau authored Oct 14, 2022
2 parents 700801d + 6176449 commit d9d8139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/okta/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func (oc *Client) follow(ctx context.Context, req *http.Request, loginDetails *c
}

func getStateTokenFromOktaPageBody(responseBody string) (string, error) {
re := regexp.MustCompile("var stateToken = '(.*)';")
re := regexp.MustCompile("var stateToken = [\"|'](.*)[\"|'];")
match := re.FindStringSubmatch(responseBody)
if len(match) < 2 {
return "", errors.New("cannot find state token")
Expand Down

0 comments on commit d9d8139

Please sign in to comment.