Skip to content

Commit

Permalink
Revert "Add support for new OKTA OIE and retry 429 error code (#731)"
Browse files Browse the repository at this point in the history
This reverts commit 7c7d86c.
  • Loading branch information
sfc-gh-ext-simba-lb committed Mar 16, 2023
1 parent bd12fc7 commit 7d6b02f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions authokta.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ type authOKTARequest struct {
}

type authOKTAResponse struct {
CookieToken string `json:"cookieToken"`
SessionToken string `json:"sessionToken"`
CookieToken string `json:"cookieToken"`
}

/*
Expand Down Expand Up @@ -138,13 +137,7 @@ func authenticateBySAML(
logger.WithContext(ctx).Info("step 4: query IDP URL snowflake app to get SAML response")
params = &url.Values{}
params.Add("RelayState", "/some/deep/link")
var oneTimeToken string
if respa.SessionToken != "" {
oneTimeToken = respa.SessionToken
} else {
oneTimeToken = respa.CookieToken
}
params.Add("onetimetoken", oneTimeToken)
params.Add("onetimetoken", respa.CookieToken)

headers = make(map[string]string)
headers[httpHeaderAccept] = "*/*"
Expand Down

0 comments on commit 7d6b02f

Please sign in to comment.