Skip to content

Commit

Permalink
Adds support for Okta Verify risky login challenge
Browse files Browse the repository at this point in the history
Should fix Versent#643
  • Loading branch information
duanewaddleAFS committed Mar 23, 2022
1 parent cdd6da8 commit 08d5c1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/okta/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,10 @@ func verifyMfa(oc *Client, oktaOrgHost string, loginDetails *creds.LoginDetails,
switch gjson.Get(body, "factorResult").String() {

case "WAITING":
correctAnswer := gjson.Get(body,"_embedded.factor._embedded.challenge.correctAnswer")
if(correctAnswer.Exists()) {
log.Println("Number Challenge Value is %d", correctAnswer.Int())
}
time.Sleep(3 * time.Second)
logger.Debug("Waiting for user to authorize login")
updatedContext, err := getMfaChallengeContext(oc, mfaOption, resp)
Expand Down

0 comments on commit 08d5c1d

Please sign in to comment.